Skip to content

Commit

Permalink
Merge pull request #6 from fabio-garavini/patch-1
Browse files Browse the repository at this point in the history
Fix ESP-IDF undeclared 'highByte', 'lowByte'
  • Loading branch information
tsunglung authored Dec 17, 2023
2 parents b58e822 + a3d04a9 commit 9b38a17
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 9b38a17

Please sign in to comment.