mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-20 09:46:34 +00:00
Rename pre-setup to init
This commit is contained in:
parent
215c2645b3
commit
7009c10c97
@ -17,7 +17,7 @@ class BaseDevice {
|
||||
|
||||
virtual void reboot()
|
||||
{}
|
||||
virtual void pre_setup()
|
||||
virtual void init()
|
||||
{}
|
||||
virtual void post_setup()
|
||||
{}
|
||||
|
@ -48,7 +48,7 @@ static void print_char_val_type(esp_adc_cal_value_t val_type)
|
||||
}
|
||||
}
|
||||
|
||||
void LanbonL8::pre_setup()
|
||||
void LanbonL8::init()
|
||||
{
|
||||
// Check if Two Point or Vref are burned into eFuse
|
||||
check_efuse();
|
||||
|
@ -12,7 +12,7 @@ namespace dev {
|
||||
|
||||
class LanbonL8 : public Esp32Device {
|
||||
public:
|
||||
void pre_setup();
|
||||
void init();
|
||||
};
|
||||
|
||||
} // namespace dev
|
||||
|
@ -8,7 +8,7 @@
|
||||
// AXP192 Axp;
|
||||
namespace dev {
|
||||
|
||||
void M5StackCore2::pre_setup(void)
|
||||
void M5StackCore2::init(void)
|
||||
{
|
||||
AXP192 Axp;
|
||||
Wire.begin(TOUCH_SDA, TOUCH_SCL);
|
||||
|
@ -12,7 +12,7 @@ namespace dev {
|
||||
|
||||
class M5StackCore2 : public Esp32Device {
|
||||
public:
|
||||
void pre_setup() override;
|
||||
void init() override;
|
||||
};
|
||||
|
||||
} // namespace dev
|
||||
|
Loading…
x
Reference in New Issue
Block a user