Skip to content

Commit 72d14c4

Browse files
committed
Merge commit '27bb76693b5184336af4f99ce9cbc6667452f7f0'
2 parents 30805ba + 27bb766 commit 72d14c4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Including this repo in your existing Arduino core will allow the language to gro
88
For backwards compatibility, every revision of this repo will increase `ARDUINO_API_VERSION` define.
99

1010
Some cores have been ported to the new structure, for example:
11-
* megaAVR (http://github.com/arduino/ArduinoCore-megaAVR)
12-
* classic AVR (http://github.com/arduino/ArduinoCore-avr/tree/api)
13-
* SAMD (http://github.com/arduino/ArduinoCore-samd/tree/api)
11+
* megaAVR (https://github.com/arduino/ArduinoCore-megaAVR)
12+
* nRF52-mbedos (https://github.com/arduino/ArduinoCore-nRF528x-mbedos)
13+
* classic AVR (https://github.com/arduino/ArduinoCore-avr/tree/api)
14+
* SAMD (https://github.com/arduino/ArduinoCore-samd/tree/api)
1415

1516
These repositories **don't** contain the needed `api` subfolder; to "complete" the core you need to copy or symlink the `api` folder from this repo to the target's `cores/arduino` folder.
1617

api/deprecated-include/Interrupts.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ template<typename T> struct __container__ {
1515
};
1616

1717
// C++ only overloaded version of attachInterrupt function
18-
template<typename T> void attachInterrupt(pin_size_t interruptNum, voidTemplateFuncPtrParam<T> userFunc, int mode, T& param) {
18+
template<typename T> void attachInterrupt(pin_size_t interruptNum, voidTemplateFuncPtrParam<T> userFunc, PinStatus mode, T& param) {
1919

2020
struct __container__<T> *cont = new __container__<T>();
2121
cont->param = &param;
@@ -32,7 +32,7 @@ template<typename T> void attachInterrupt(pin_size_t interruptNum, voidTemplateF
3232
attachInterruptParam(interruptNum, f, mode, cont);
3333
}
3434

35-
template<typename T> void attachInterrupt(uint8_t interruptNum, voidTemplateFuncPtrParam<T*> userFunc, int mode, T* param) {
35+
template<typename T> void attachInterrupt(pin_size_t interruptNum, voidTemplateFuncPtrParam<T*> userFunc, PinStatus mode, T* param) {
3636
attachInterruptParam(interruptNum, (voidFuncPtrParam)userFunc, mode, (void*)param);
3737
}
3838

api/src/A_String.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ String::String(double value, unsigned char decimalPlaces)
126126

127127
String::~String()
128128
{
129-
free(buffer);
129+
if (buffer) free(buffer);
130130
}
131131

132132
/*********************************************/

0 commit comments

Comments
 (0)