Skip to content

Commit 9ed0ad2

Browse files
committed
Readd compatibility with samd and megaavr architectures
Needs bxparks/AceCommon#14, arduino/ArduinoCore-API#144 and arduino/ArduinoCore-samd#612 Fixes bxparks#45 and arduino/ArduinoCore-samd#606
1 parent df0e059 commit 9ed0ad2

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

src/AceTime.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@
1717
#ifndef ACE_TIME_ACE_TIME_H
1818
#define ACE_TIME_ACE_TIME_H
1919

20-
// Blacklist boards using new Arduino API due to incompatibilities. This
21-
// currently includes all megaAVR boards and SAMD21 boards using arduino::samd
22-
// >= 1.8.10. Boards using arduino:samd <= 1.8.9 or SparkFun:samd are fine.
23-
#if defined(ARDUINO_ARCH_MEGAAVR)
24-
#error MegaAVR not supported, https://github.com/bxparks/AceTime/issues/44
25-
#elif defined(ARDUINO_ARCH_SAMD) && defined(ARDUINO_API_VERSION)
26-
#error SAMD21 with arduino:samd >= 1.8.10 not supported, https://github.com/bxparks/AceTime/issues/45
27-
#endif
28-
2920
#include "ace_time/common/compat.h"
3021
#include "ace_time/common/common.h"
3122
#include "ace_time/common/DateStrings.h"

src/ace_time/LocalDateTime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <stddef.h> // size_t
1010
#include <stdint.h> // uint8_t, etc
1111
#include <string.h> // strlen()
12-
#include <Arduino.h> // strncpy_P()
12+
#include <avr/pgmspace.h> // strncpy_P()
1313
#include "LocalDate.h"
1414
#include "LocalTime.h"
1515

src/ace_time/OffsetDateTime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (c) 2018 Brian T. Park
44
*/
55

6+
#include <AceCommon.h>
67
#include "LocalDateTime.h"
78
#include "OffsetDateTime.h"
89

src/ace_time/ZonedDateTime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (c) 2018 Brian T. Park
44
*/
55

6+
#include <AceCommon.h>
67
#include "common/DateStrings.h"
78
#include "ZonedDateTime.h"
89

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy