diff --git a/hardware/MySensors/samd/platform.txt b/hardware/MySensors/samd/platform.txt index 91a6ffd..20b3076 100644 --- a/hardware/MySensors/samd/platform.txt +++ b/hardware/MySensors/samd/platform.txt @@ -86,7 +86,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.path} {includes} "{source_file}" -o "{object_file}" ## Create archives -recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" +#recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" ## Combine gc-sections, archives, and objects recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group 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