Skip to content

Commit

Permalink
Include SAMD archic¡tecture (MKR1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmag11 committed Sep 5, 2016
1 parent e24845e commit 2023a44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AvrNTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "NTPClientLib.h"

#ifdef ARDUINO_ARCH_AVR
#if defined ARDUINO_ARCH_AVR || defined ARDUINO_ARCH_SAMD

#define DBG_PORT Serial

Expand Down
6 changes: 3 additions & 3 deletions src/NtpClientLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using namespace placeholders;
#ifdef ARDUINO_ARCH_ESP8266
#define NETWORK_TYPE NETWORK_ESP8266

#elif defined ARDUINO_ARCH_AVR
#elif defined ARDUINO_ARCH_AVR || defined ARDUINO_ARCH_SAMD
#define NETWORK_TYPE NETWORK_WIFI101 // SET YOUR NETWORK INTERFACE
#if NETWORK_TYPE == NETWORK_W5100
#include <SPI.h>
Expand Down Expand Up @@ -121,7 +121,7 @@ class NTPClient{
*/
time_t getTime();
#endif
#ifdef ARDUINO_ARCH_AVR
#if defined ARDUINO_ARCH_AVR || defined ARDUINO_ARCH_SAMD
/**
* Sets NTP server name.
* @param[in] New NTP server name.
Expand Down Expand Up @@ -312,7 +312,7 @@ class NTPClient{
*/
String printDigits(int digits);

#ifdef ARDUINO_ARCH_AVR
#if defined ARDUINO_ARCH_AVR || defined ARDUINO_ARCH_SAMD

int _timeZone = 0;
char* _ntpServerName;
Expand Down

0 comments on commit 2023a44

Please sign in to comment.