Permalink
Browse files

TS failed read type bugfix

  • Loading branch information...
gioblu committed Feb 1, 2018
1 parent 57baf1b commit 1a5b436520ada94a864b14a9b5e93f93532ac76f
Showing with 3 additions and 3 deletions.
  1. +3 −3 strategies/ThroughSerial/ThroughSerial.h
@@ -105,10 +105,10 @@ class ThroughSerial {
while((uint32_t)(PJON_MICROS() - time) < time_out) {
if(PJON_SERIAL_AVAILABLE(serial)) {
_last_reception_time = PJON_MICROS();
uint16_t read = (uint8_t)PJON_SERIAL_READ(serial);
int16_t read = PJON_SERIAL_READ(serial);
if(read >= 0) {
_last_byte = read;
return read;
_last_byte = (uint8_t)read;
return _last_byte;
}
}
#if defined(_WIN32)

0 comments on commit 1a5b436

Please sign in to comment.