Skip to content

Commit c0c2197

Browse files
Fix OTAA Bugs
1 parent ded98af commit c0c2197

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/OLED/OTA_OLED/OTA_OLED.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ void setupOTA()
104104
//int pro = progress / (total / 100);
105105

106106
Heltec.display->clear();
107-
#ifdef Wireless_Stick
107+
#if defined (Wireless_Stick)
108108
Heltec.display->drawProgressBar(0, 11, 64, 8, progressbar); // draw the progress bar
109109
Heltec.display->setTextAlignment(TEXT_ALIGN_CENTER); // draw the percentage as String
110110
Heltec.display->drawString(10, 20, pro);
111-
#elif
111+
#else
112112
Heltec.display->drawProgressBar(0, 32, 120, 10, progressbar); // draw the progress bar
113113
Heltec.display->setTextAlignment(TEXT_ALIGN_CENTER); // draw the percentage as String
114114
Heltec.display->drawString(64, 15, pro);
@@ -286,4 +286,4 @@ void WiFiEvent(WiFiEvent_t event)
286286
case SYSTEM_EVENT_MAX:
287287
break;
288288
}
289-
}
289+
}

0 commit comments

Comments
 (0)