From be2c89a2005bacb1deebcdcd5c87baf8813541e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=B8rch?= Date: Fri, 18 Dec 2015 23:51:04 +0100 Subject: [PATCH] snprintf_P missing in arduino core for samd, so have a local macro --- libraries/MySensors/core/MyHwSAMD.h | 1 + libraries/MySensors/library.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/MySensors/core/MyHwSAMD.h b/libraries/MySensors/core/MyHwSAMD.h index cec85af..e8717ca 100644 --- a/libraries/MySensors/core/MyHwSAMD.h +++ b/libraries/MySensors/core/MyHwSAMD.h @@ -35,6 +35,7 @@ #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) +#define snprintf_P(s, f, ...) snprintf((s), (f), __VA_ARGS__) // Define these as macros to save valuable space diff --git a/libraries/MySensors/library.properties b/libraries/MySensors/library.properties index 54e59aa..db72528 100644 --- a/libraries/MySensors/library.properties +++ b/libraries/MySensors/library.properties @@ -6,4 +6,4 @@ sentence=Home Automation Framework paragraph=Create your own wireless sensor mesh using NRF24L01+ and RFM69 radios running on Arduino or ESP8266. Over-the-air updates and MySensors support in 16+ home automation controllers. category=Communication url=http://www.mysensors.org -architectures=avr,esp8266 \ No newline at end of file +architectures=avr,esp8266,samd