Fix read final unsigned to signed retyped

This commit is contained in:
2021-09-11 22:49:23 +02:00
parent 5b0610cc44
commit ffaa44ceb4
3 changed files with 7 additions and 6 deletions

View File

@@ -253,12 +253,13 @@ Ymodem::Code YmodemFileReceive::callback(Status status, uint8_t *buff, uint32_t
}
}
uint32_t YmodemFileReceive::read(uint8_t *buff, uint32_t len)
int32_t YmodemFileReceive::read(uint8_t *buff, uint32_t len)
{
return serialPort->read((char *)buff, len);
}
uint32_t YmodemFileReceive::write(uint8_t *buff, uint32_t len)
int32_t YmodemFileReceive::write(uint8_t *buff, uint32_t len)
{
return serialPort->write((char *)buff, len);
}