File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1054,6 +1054,9 @@ bool I2cController::Handle_I2cDeviceAddOrReplace(pb_istream_t *stream) {
1054
1054
GPSController *drv_uart_gps = nullptr ;
1055
1055
1056
1056
if (strcmp (device_name, " UNKNOWN_SCAN" ) == 0 ) {
1057
+ if (!WsV2._global_auto_config ) {
1058
+ return true ;
1059
+ }
1057
1060
WS_DEBUG_PRINTLN (" Attempting to autoconfig device found in scan..." );
1058
1061
if (device_descriptor.i2c_device_address == 0x68 ||
1059
1062
device_descriptor.i2c_device_address == 0x70 ) {
Original file line number Diff line number Diff line change @@ -856,9 +856,9 @@ bool ws_sdcard::ParseExportedFromDevice(JsonDocument &doc) {
856
856
return false ;
857
857
}
858
858
859
- if (exportedFromDevice[ " autoConfig " ]. as < bool >() == false ) {
860
- WsV2. _global_auto_config = false ;
861
- }
859
+ bool global_auto_config = true ;
860
+ global_auto_config = exportedFromDevice[ " autoConfig " ]. as < bool >() ;
861
+ WsV2. _global_auto_config = global_auto_config;
862
862
863
863
return true ;
864
864
}
You can’t perform that action at this time.
0 commit comments