Skip to content

Commit

Permalink
Fix header
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 14, 2024
1 parent d3eb901 commit dd7a0cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/asic/bm1370.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static void _send_BM1370(uint8_t header, uint8_t * data, uint8_t data_len, bool
}

// send serial data
if (SERIAL_send(buf, total_length, debug) == 0) {
if (SERIAL_send(buf, total_length, debug) == ESP_FAIL) {
ESP_LOGE(TAG, "Failed to send data to BM1370");
}

Expand Down
2 changes: 1 addition & 1 deletion components/asic/include/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define SERIAL_BUF_SIZE 16
#define CHUNK_SIZE 1024

int SERIAL_send(uint8_t *, int, bool);
esp_err_t SERIAL_send(uint8_t *, int, bool);
void SERIAL_init(void);
void SERIAL_debug_rx(void);
int16_t SERIAL_rx(uint8_t *, uint16_t, uint16_t);
Expand Down

0 comments on commit dd7a0cf

Please sign in to comment.