Skip to main content

I have this compilation error:

TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(Serial.find(TIME_HEADER)) {

                         ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:

TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(Serial.find(TIME_HEADER)) {

                         ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:

TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(Serial.find(TIME_HEADER)) {

                         ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:
TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(Serial.find(TIME_HEADER)) { ^

Please

TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(Serial.find(TIME_HEADER)) {

                         ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:
TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(Serial.find(TIME_HEADER)) { ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:

TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(Serial.find(TIME_HEADER)) {

                         ^

Please replace this line:
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line:
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

added 57 characters in body
Source Link
gin
  • 29
  • 3

I have this compilation error:
TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(Serial.find(TIME_HEADER)) { ^

Please replace this line: 
#define TIME_HEADER "T" // Header tag for serial time sync message#define TIME_HEADER "T" // Header tag for serial time sync message

with this line: 
#define TIME_HEADER 'T'#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

I have this compilation error:
TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(Serial.find(TIME_HEADER)) { ^

Please replace this line: #define TIME_HEADER "T" // Header tag for serial time sync message

with this line: #define TIME_HEADER 'T'

and compilation goes well.

I have this compilation error:
TimeSerial.ino:68:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(Serial.find(TIME_HEADER)) { ^

Please replace this line: 
#define TIME_HEADER "T" // Header tag for serial time sync message

with this line: 
#define TIME_HEADER 'T' // Header tag for serial time sync message

and compilation goes well.

added 3 characters in body
Source Link
gin
  • 29
  • 3
Loading
[Edit removed during grace period]
Source Link
gin
  • 29
  • 3
Loading
added 6 characters in body
Source Link
gin
  • 29
  • 3
Loading
Source Link
gin
  • 29
  • 3
Loading