File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1288,11 +1288,12 @@ void Wippersnapper_V2::connect() {
1288
1288
// Parse the JSON file
1289
1289
if (!WsV2._sdCardV2 ->ParseFileConfig ())
1290
1290
haltErrorV2 (" [APP] Failed to parse config.json!" );
1291
- WS_DEBUG_PRINTLN (" [APP] Attempting to configure hardware..." );
1292
1291
#ifndef OFFLINE_MODE_DEBUG
1292
+ WS_DEBUG_PRINTLN (" [APP] Creating new .log file on SD card..." );
1293
1293
if (!WsV2._sdCardV2 ->CreateNewLogFile ())
1294
1294
haltErrorV2 (" Unable to create new .log file on SD card!" );
1295
1295
#endif
1296
+ WS_DEBUG_PRINTLN (" [APP] Attempting to configure hardware..." );
1296
1297
// Call the TL signal decoder to parse the incoming JSON data
1297
1298
callDecodeB2D ();
1298
1299
#ifndef OFFLINE_MODE_WOKWI
Original file line number Diff line number Diff line change @@ -1454,7 +1454,9 @@ void I2cController::update() {
1454
1454
sensors_event_t event = {0 };
1455
1455
// Attempt to call driver's read handler function
1456
1456
if (!drv->GetSensorEvent (drv->_sensors [i], &event)) {
1457
- WS_DEBUG_PRINTLN (" [i2c] ERROR: Failed to read sensor!" );
1457
+ WS_DEBUG_PRINT (" [i2c] ERROR: Failed to read sensor! (" );
1458
+ WS_DEBUG_PRINT (drv->GetDrvName ());
1459
+ WS_DEBUG_PRINTLN (" )" );
1458
1460
continue ;
1459
1461
}
1460
1462
// Fill the I2cDeviceEvent's sensor_event array submsg.
Original file line number Diff line number Diff line change @@ -813,8 +813,11 @@ bool ws_sdcard::CreateNewLogFile() {
813
813
814
814
// Attempt to create a new log file
815
815
File32 file;
816
- if (!file.open (_log_filename, O_RDWR | O_CREAT | O_AT_END))
816
+ WS_DEBUG_PRINTLN (" [SD] Opening new log file" );
817
+ if (!file.open (_log_filename, O_RDWR | O_CREAT | O_AT_END)) {
818
+ WS_DEBUG_PRINTLN (" [SD] Error: Unable to create new log file on SD card!" );
817
819
return false ;
820
+ }
818
821
WS_DEBUG_PRINT (" [SD] Created new log file on SD card: " );
819
822
WS_DEBUG_PRINTLN (_log_filename);
820
823
_sd_cur_log_files++;
You can’t perform that action at this time.
0 commit comments