@@ -96,8 +96,8 @@ void firmwareMenu()
96
96
// Given a char string, break into version number major/minor, year, month, day
97
97
// Returns false if parsing failed
98
98
// ----------------------------------------
99
- bool firmwareVersionBreakIntoParts (char *version, int *versionNumberMajor, int *versionNumberMinor, int *year, int *month,
100
- int *day)
99
+ bool firmwareVersionBreakIntoParts (char *version, int *versionNumberMajor, int *versionNumberMinor, int *year,
100
+ int *month, int * day)
101
101
{
102
102
char monthStr[20 ];
103
103
int placed = 0 ;
@@ -188,8 +188,8 @@ bool firmwareVersionIsReportedNewer(char *reportedVersion, char *currentVersion)
188
188
189
189
firmwareVersionBreakIntoParts (currentVersion, ¤tVersionNumberMajor, ¤tVersionNumberMinor, ¤tYear,
190
190
¤tMonth, ¤tDay);
191
- firmwareVersionBreakIntoParts (reportedVersion, &reportedVersionNumberMajor, &reportedVersionNumberMinor, &reportedYear,
192
- &reportedMonth, &reportedDay);
191
+ firmwareVersionBreakIntoParts (reportedVersion, &reportedVersionNumberMajor, &reportedVersionNumberMinor,
192
+ &reportedYear, & reportedMonth, &reportedDay);
193
193
194
194
if (settings.debugFirmwareUpdate )
195
195
{
@@ -580,11 +580,9 @@ void otaDisplayPercentage(int bytesWritten, int totalLength, bool alwaysDisplay)
580
580
581
581
if (apConfigFirmwareUpdateInProcess == true )
582
582
{
583
- #ifdef COMPILE_AP
584
583
char myProgress[50 ];
585
584
snprintf (myProgress, sizeof (myProgress), " otaFirmwareStatus,%d," , percent);
586
585
sendStringToWebsocket (myProgress);
587
- #endif // COMPILE_AP
588
586
}
589
587
590
588
previousPercent = percent;
@@ -609,11 +607,10 @@ const char *otaGetUrl()
609
607
// ----------------------------------------
610
608
// Display the OTA portion of the firmware menu
611
609
// ----------------------------------------
612
- void otaMenuDisplay (char * currentVersion)
610
+ void otaMenuDisplay (char *currentVersion)
613
611
{
614
612
// Automatic firmware updates
615
- systemPrintf (" a) Automatic firmware updates: %s\r\n " ,
616
- settings.enableAutoFirmwareUpdate ? " Enabled" : " Disabled" );
613
+ systemPrintf (" a) Automatic firmware updates: %s\r\n " , settings.enableAutoFirmwareUpdate ? " Enabled" : " Disabled" );
617
614
618
615
systemPrint (" c) Check SparkFun for device firmware: " );
619
616
0 commit comments