mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
ArduinoOTA library change (#2013)
* Fixed callbacks to allow lambda capture * Update ArduinoOTA.cpp * Fixed callbacks to allow lambda capture * Fixed callbacks to allow lambda capture * Update ArduinoOTA.h * Tests update Update ArduinoOTA.h Fixed callbacks to allow lambda capture * Modified callbacks to enable lambda capture * Modified callbacks to enable lambda capture
This commit is contained in:
committed by
Ivan Grokhotkov
parent
3cfad27e38
commit
d60d744b59
@ -49,19 +49,19 @@ ArduinoOTAClass::~ArduinoOTAClass(){
|
||||
}
|
||||
}
|
||||
|
||||
void ArduinoOTAClass::onStart(OTA_CALLBACK(fn)) {
|
||||
void ArduinoOTAClass::onStart(THandlerFunction fn) {
|
||||
_start_callback = fn;
|
||||
}
|
||||
|
||||
void ArduinoOTAClass::onEnd(OTA_CALLBACK(fn)) {
|
||||
void ArduinoOTAClass::onEnd(THandlerFunction fn) {
|
||||
_end_callback = fn;
|
||||
}
|
||||
|
||||
void ArduinoOTAClass::onProgress(OTA_CALLBACK_PROGRESS(fn)) {
|
||||
void ArduinoOTAClass::onProgress(THandlerFunction_Progress fn) {
|
||||
_progress_callback = fn;
|
||||
}
|
||||
|
||||
void ArduinoOTAClass::onError(OTA_CALLBACK_ERROR(fn)) {
|
||||
void ArduinoOTAClass::onError(THandlerFunction_Error fn) {
|
||||
_error_callback = fn;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user