Skip to content

Commit a16e1e5

Browse files
committed
fixes
1 parent f23caa2 commit a16e1e5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

cores/esp8266/FunctionalInterrupt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ struct ArgStructure {
2828
FunctionInfo* functionInfo = nullptr;
2929
};
3030

31-
void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
32-
void attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode);
31+
bool attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode);
32+
bool attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode);
3333

3434

3535
#endif //INTERRUPTS_H

cores/esp8266/cbuf.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
2020

21+
#include <new> // std::nothrow
2122
#include "cbuf.h"
2223
#include "c_types.h"
2324

libraries/ArduinoOTA/ArduinoOTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void ArduinoOTAClass::setRebootOnSuccess(bool reboot){
108108

109109
bool ArduinoOTAClass::begin(bool useMDNS) {
110110
if (_initialized)
111-
return;
111+
return true;
112112

113113
_useMDNS = useMDNS;
114114

libraries/ArduinoOTA/ArduinoOTA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ArduinoOTAClass
6060
void onProgress(THandlerFunction_Progress fn);
6161

6262
//Starts the ArduinoOTA service
63-
void begin(bool useMDNS = true);
63+
bool begin(bool useMDNS = true);
6464

6565
//Call this in loop() to run the service. Also calls MDNS.update() when begin() or begin(true) is used.
6666
void handle();

0 commit comments

Comments
 (0)