mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-15 09:32:08 +00:00
revert KB_POWERON changes (#2847)
This commit is contained in:
parent
4e3576ae48
commit
e9215a5d70
@ -154,9 +154,6 @@ static void darkEnter()
|
|||||||
{
|
{
|
||||||
setBluetoothEnable(true);
|
setBluetoothEnable(true);
|
||||||
screen->setOn(false);
|
screen->setOn(false);
|
||||||
#ifdef KB_POWERON
|
|
||||||
digitalWrite(KB_POWERON, LOW);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void serialEnter()
|
static void serialEnter()
|
||||||
@ -184,9 +181,6 @@ static void powerEnter()
|
|||||||
} else {
|
} else {
|
||||||
screen->setOn(true);
|
screen->setOn(true);
|
||||||
setBluetoothEnable(true);
|
setBluetoothEnable(true);
|
||||||
#ifdef KB_POWERON
|
|
||||||
digitalWrite(KB_POWERON, HIGH);
|
|
||||||
#endif
|
|
||||||
// within enter() the function getState() returns the state we came from
|
// within enter() the function getState() returns the state we came from
|
||||||
if (strcmp(powerFSM.getState()->name, "BOOT") != 0 && strcmp(powerFSM.getState()->name, "POWER") != 0 &&
|
if (strcmp(powerFSM.getState()->name, "BOOT") != 0 && strcmp(powerFSM.getState()->name, "POWER") != 0 &&
|
||||||
strcmp(powerFSM.getState()->name, "DARK") != 0) {
|
strcmp(powerFSM.getState()->name, "DARK") != 0) {
|
||||||
@ -217,9 +211,6 @@ static void onEnter()
|
|||||||
LOG_DEBUG("Enter state: ON\n");
|
LOG_DEBUG("Enter state: ON\n");
|
||||||
screen->setOn(true);
|
screen->setOn(true);
|
||||||
setBluetoothEnable(true);
|
setBluetoothEnable(true);
|
||||||
#ifdef KB_POWERON
|
|
||||||
digitalWrite(KB_POWERON, HIGH);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void onIdle()
|
static void onIdle()
|
||||||
|
Loading…
Reference in New Issue
Block a user