Skip to content

Commit

Permalink
Update s8_uart.cpp
Browse files Browse the repository at this point in the history
Solve error when compiling in debug
(CORE_DEBUG_LEVEL=5)
  • Loading branch information
jcomas authored May 8, 2024
1 parent 6f97a3c commit f13551c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/s8_uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ void S8_UART::send_cmd( uint8_t func, uint16_t reg, uint16_t value) {
/* Send bytes to sensor */
void S8_UART::serial_write_bytes(uint8_t size) {

LOG_DEBUG_VERBOSE_PACKET("Bytes to send: ", (uint8_t *)buf_msg, size);
LOG_DEBUG_VERBOSE_PACKET("Bytes to send: ", (char *)buf_msg, size);

mySerial->write(buf_msg, size);
mySerial->flush();
Expand All @@ -566,7 +566,7 @@ uint8_t S8_UART::serial_read_bytes(uint8_t max_bytes, uint32_t timeout_ms) {

if (readed) {
if (nb > 0) {
LOG_DEBUG_VERBOSE_PACKET("Bytes received: ", (uint8_t *)buf_msg, nb);
LOG_DEBUG_VERBOSE_PACKET("Bytes received: ", (char *)buf_msg, nb);

} else {
LOG_DEBUG_ERROR("Unexpected reading serial port!");
Expand Down

0 comments on commit f13551c

Please sign in to comment.