Add weakly-define Arduino loop() function (defined as NO OP)

Allows you to compile a sketch without defining the Arduino loop() function.  Useful in cases where homeSpan.autoPoll() is used instead.
This commit is contained in:
Gregg 2022-05-21 17:26:27 -05:00
parent 1f89673fb7
commit 72ddee9061
1 changed files with 5 additions and 0 deletions

View File

@ -2119,6 +2119,11 @@ void SpanOTA::error(ota_error_t err){
///////////////////////////////
void __attribute__((weak)) loop(){
}
///////////////////////////////
int SpanOTA::otaPercent;
boolean SpanOTA::safeLoad;
boolean SpanOTA::enabled=false;