mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-04 18:03:20 +03:00
fixes
This commit is contained in:
parent
f23caa2dcd
commit
a16e1e5b8a
@ -28,8 +28,8 @@ struct ArgStructure {
|
||||
FunctionInfo* functionInfo = nullptr;
|
||||
};
|
||||
|
||||
void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
|
||||
void attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode);
|
||||
bool attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
|
||||
bool attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode);
|
||||
|
||||
|
||||
#endif //INTERRUPTS_H
|
||||
|
@ -18,6 +18,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <new> // std::nothrow
|
||||
#include "cbuf.h"
|
||||
#include "c_types.h"
|
||||
|
||||
|
@ -108,7 +108,7 @@ void ArduinoOTAClass::setRebootOnSuccess(bool reboot){
|
||||
|
||||
bool ArduinoOTAClass::begin(bool useMDNS) {
|
||||
if (_initialized)
|
||||
return;
|
||||
return true;
|
||||
|
||||
_useMDNS = useMDNS;
|
||||
|
||||
|
@ -60,7 +60,7 @@ class ArduinoOTAClass
|
||||
void onProgress(THandlerFunction_Progress fn);
|
||||
|
||||
//Starts the ArduinoOTA service
|
||||
void begin(bool useMDNS = true);
|
||||
bool begin(bool useMDNS = true);
|
||||
|
||||
//Call this in loop() to run the service. Also calls MDNS.update() when begin() or begin(true) is used.
|
||||
void handle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user