Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit dfe573e

Browse files
committed
Bug: retainWifiSettings wasn't saved in the config correctly
1 parent b471315 commit dfe573e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ void setup( void ) {
962962
ESPUI.addControl( ControlType::Label, "Attention:", "These Buttons here reset the whole config. This affects the WIFI too, if not configured otherwise below. You have to press \"Apply & Reboot\" above to actualy store them.", ControlColor::Carrot, tab );
963963

964964
{
965-
ESPUI.addControl( ControlType::Switcher, "Retain WIFI settings", steerConfig.sendCalibrationDataFromImu ? "1" : "0", ControlColor::Peterriver, tab,
965+
ESPUI.addControl( ControlType::Switcher, "Retain WIFI settings", steerConfig.retainWifiSettings ? "1" : "0", ControlColor::Peterriver, tab,
966966
[]( Control * control, int id ) {
967967
steerConfig.retainWifiSettings = control->value.toInt() == 1;
968968
} );

0 commit comments

Comments
 (0)