mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Adding std::function support for SAMD (#113)
This commit is contained in:
parent
f3751b6ccd
commit
8405d1f47d
@ -99,3 +99,11 @@ enum ParameterFloatEncodings
|
||||
Float_Enc_IEEE754Single = 1, // 4 Byte. C++ float
|
||||
Float_Enc_IEEE754Double = 2, // 8 Byte. C++ double
|
||||
};
|
||||
|
||||
|
||||
#if defined(ARDUINO_ARCH_SAMD)
|
||||
// temporary undef until framework-arduino-samd > 1.8.9 is released. See https://github.com/arduino/ArduinoCore-samd/pull/399 for a PR should will probably address this
|
||||
#undef max
|
||||
#undef min
|
||||
// end of temporary undef
|
||||
#endif
|
@ -20,7 +20,7 @@ enum ComFlag
|
||||
class GroupObject;
|
||||
|
||||
#ifndef HAS_FUNCTIONAL
|
||||
# if defined(__linux__) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_STM32)
|
||||
# if defined(__linux__) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_STM32) || defined (ARDUINO_ARCH_SAMD)
|
||||
# define HAS_FUNCTIONAL 1
|
||||
# else
|
||||
# define HAS_FUNCTIONAL 0
|
||||
|
Loading…
Reference in New Issue
Block a user