File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ void webServerStop() {}
175
175
void webServerUpdate () {}
176
176
void webServerVerifyTables () {}
177
177
void wifiSettingsClone () {}
178
+ bool webServerIsRunning () {return false ;}
178
179
179
180
#endif // COMPILE_AP
180
181
Original file line number Diff line number Diff line change @@ -914,7 +914,7 @@ void ntpServerUpdate()
914
914
915
915
if (ntpFileExists)
916
916
{
917
- if (ntpFile && ntpFile .open (fileName, O_APPEND | O_WRITE))
917
+ if (ntpFile.open (fileName, O_APPEND | O_WRITE))
918
918
{
919
919
fileOpen = true ;
920
920
sdUpdateFileCreateTimestamp (&ntpFile);
Original file line number Diff line number Diff line change @@ -637,14 +637,9 @@ void recordLineToSD(const char *fileName, const char *lineData)
637
637
gotSemaphore = true ;
638
638
639
639
SdFile file;
640
- if (!file)
641
- {
642
- systemPrintln (" ERROR - Failed to allocate file" );
643
- break ;
644
- }
645
640
if (file.open (fileName, O_CREAT | O_APPEND | O_WRITE) == false )
646
641
{
647
- log_d ( " File %s not found " , fileName);
642
+ systemPrintf ( " recordLineToSD: Failed to modify %s \n\r " , fileName);
648
643
break ;
649
644
}
650
645
Original file line number Diff line number Diff line change @@ -370,11 +370,6 @@ void microSDUpdateFirmware(const char *firmwareFileName)
370
370
371
371
// Verify that the SdFile object can be allocated
372
372
SdFile firmwareFile;
373
- if (!firmwareFile)
374
- {
375
- systemPrintln (" ERROR - Failed to allocate firmwareFile" );
376
- return ;
377
- }
378
373
379
374
// Verify that the firmware file can be opened
380
375
if (!firmwareFile.open (firmwareFileName, O_READ))
You can’t perform that action at this time.
0 commit comments