hello, i'm using array store received string serial port. dont know why compare not works. see:
i wanna check if on rxbuffer[3] has minus symbol convert int negative if receive a '-';
can me???
code: [select]
if (rxbuffer[3] == '-') value = value * -1;
i wanna check if on rxbuffer[3] has minus symbol convert int negative if receive a '-';
can me???
is rxbuffer 2 or 1 dimensional array? how declare it?
if data coming in externally, assurances have going fourth character contains '-'?
if data coming in externally, assurances have going fourth character contains '-'?
Arduino Forum > Using Arduino > Programming Questions > Comparing one array
arduino
Comments
Post a Comment