Closed gonzalop closed 2 years ago
Testing out this PR using
external_components:
source:
type: git
url: https://github.com/gonzalop/esphome-m5stickC
ref: patch-1
components: [axp192]
I'm also seeing:
src/esphome/components/axp192/axp192.cpp:57:5: error: 'byte' was not declared in this scope
byte buf = (Read8bit(0x12) & 0xef) | 0x4D;
^
which works when byte
is replaced with uint8_t
(which is what the rest of the codebase seems to use for byte values)
Fixes errors including: src/esphome/components/axp192/axp192.cpp: In member function 'void esphome::axp192::AXP192Component::DeepSleep(uint64_t)': src/esphome/components/axp192/axp192.cpp:355:35: error: 'gpio_num_t' was not declared in this scope esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW); ^ src/esphome/components/axp192/axp192.cpp:355:50: error: 'LOW' was not declared in this scope esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW); ^