Skip to content

Commit

Permalink
Fix ESP-IDF undeclared 'highByte', 'lowByte'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-garavini authored Dec 16, 2023
1 parent b58e822 commit a3d04a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/ld2450_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#define STATE_SIZE 8
#define TARGETS 3

#define highByte(val) (uint8_t)((val) >> 8)
#define lowByte(val) (uint8_t)((val) & 0xff)

static const char *TAG = "ld2450";
class LD2450 : public PollingComponent, public UARTDevice
{
Expand Down

0 comments on commit a3d04a9

Please sign in to comment.