Browse Source

wifi: small static overhead

network/test
Maxim Prokhorov 1 year ago
parent
commit
f94735759a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/espurna/wifi.cpp

+ 3
- 3
code/espurna/wifi.cpp View File

@ -296,6 +296,9 @@ namespace internal {
bool enabled { false };
ActionsQueue actions;
State state { State::Boot };
State last_state { state };
} // namespace internal
void tx_power(float dbm) {
@ -2825,9 +2828,6 @@ bool prepareConnection() {
}
void loop() {
static State state { State::Boot };
static State last_state { state };
if (last_state != state) {
DEBUG_MSG_P(PSTR("[WIFI] State %s -> %s\n"),
debug::state(last_state),


Loading…
Cancel
Save