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:
parent
1f89673fb7
commit
72ddee9061
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue