1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-07 16:23:38 +03:00
This commit is contained in:
david gauchard 2020-08-23 19:43:32 +02:00
parent f23caa2dcd
commit a16e1e5b8a
4 changed files with 5 additions and 4 deletions

View File

@ -28,8 +28,8 @@ struct ArgStructure {
FunctionInfo* functionInfo = nullptr; FunctionInfo* functionInfo = nullptr;
}; };
void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode); bool attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
void attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode); bool attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode);
#endif //INTERRUPTS_H #endif //INTERRUPTS_H

View File

@ -18,6 +18,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <new> // std::nothrow
#include "cbuf.h" #include "cbuf.h"
#include "c_types.h" #include "c_types.h"

View File

@ -108,7 +108,7 @@ void ArduinoOTAClass::setRebootOnSuccess(bool reboot){
bool ArduinoOTAClass::begin(bool useMDNS) { bool ArduinoOTAClass::begin(bool useMDNS) {
if (_initialized) if (_initialized)
return; return true;
_useMDNS = useMDNS; _useMDNS = useMDNS;

View File

@ -60,7 +60,7 @@ class ArduinoOTAClass
void onProgress(THandlerFunction_Progress fn); void onProgress(THandlerFunction_Progress fn);
//Starts the ArduinoOTA service //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. //Call this in loop() to run the service. Also calls MDNS.update() when begin() or begin(true) is used.
void handle(); void handle();