Skip to content

Commit

Permalink
Bugfix/no wifi related tasks when not enabled (#551)
Browse files Browse the repository at this point in the history
* Setup: Only perform wifi related tasks when setup_wifi is enabled
* Disable setup_wifi in SIL config

---------

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass authored Feb 22, 2024
1 parent 2456abb commit 5e589da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config-sil.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ active_modules:
localization: true
online_check_host: lfenergy.org
setup_simulation: true
setup_wifi: true
setup_wifi: false
connections:
store:
- implementation_id: main
Expand Down
4 changes: 3 additions & 1 deletion modules/Setup/Setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ void Setup::ready() {
this->discover_network();
}
this->publish_hostname();
this->publish_configured_networks();
if (this->config.setup_wifi) {
this->publish_configured_networks();
}
std::this_thread::sleep_for(std::chrono::seconds(5));
}
});
Expand Down

0 comments on commit 5e589da

Please sign in to comment.