Skip to content

Commit

Permalink
Merge pull request #650 from UncleRus/fix/hx711-esp8266
Browse files Browse the repository at this point in the history
fix: fix undefined BIT64 for esp8266
  • Loading branch information
UncleRus authored Jul 17, 2024
2 parents ac21262 + e3bef06 commit 1abe2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/hx711/hx711.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
static portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
#endif

#ifndef BIT64
#define BIT64 BIT
#endif

static uint32_t read_raw(gpio_num_t dout, gpio_num_t pd_sck, hx711_gain_t gain)
{
#if HELPER_TARGET_IS_ESP32
Expand Down

0 comments on commit 1abe2e5

Please sign in to comment.