SlashDevin/NeoHWSerial

NeoSerial.parseInt

Opened this issue · 0 comments

hello, im trying to read the next characters in the sentence using .parseInt after i enter the interrupt but the UNO just stops, i send "F 100" and it just dies. not respond to anything in normal serial it will just read '100'

void NeoSerialEvent(char NeoSerialBuffer) {
   switch (NeoSerialBuffer) {
      case 'F' :
          Fan = NeoSerial.parseInt();
          inputString = " fan:";
          inputString += Fan;
          stringComplete = true;
          analogWrite(Fanpin, Fan);
          break;
   }
}