File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2121#undef min
2222#include < algorithm>
2323
24- #if !defined ARDUINO_ARCH_SAMD && !defined TARGET_PORTENTA_H7
24+ #if !defined ARDUINO_ARCH_SAMD && !defined ARDUINO_ARCH_MBED
2525 #pragma message "No RTC available on this architecture - ArduinoIoTCloud will not keep track of local change timestamps ."
2626#endif
2727
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ static time_t const EPOCH_AT_COMPILE_TIME = cvt_time(__DATE__);
5151
5252TimeService::TimeService ()
5353: _con_hdl(nullptr )
54- #if defined (ARDUINO_ARCH_SAMD) || defined (TARGET_PORTENTA_H7 )
54+ #if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED )
5555, _is_rtc_configured(false )
5656#endif
5757{
@@ -79,7 +79,7 @@ unsigned long TimeService::getTime()
7979 _is_rtc_configured = true ;
8080 }
8181 return rtc.getEpoch ();
82- #elif TARGET_PORTENTA_H7
82+ #elif ARDUINO_ARCH_MBED
8383 if (!_is_rtc_configured)
8484 {
8585 set_time (getRemoteTime ());
Original file line number Diff line number Diff line change 2828 #include < RTCZero.h>
2929#endif
3030
31- #ifdef TARGET_PORTENTA_H7
31+ #ifdef ARDUINO_ARCH_MBED
3232 #include < mbed_rtc_time.h>
3333#endif
3434
@@ -50,7 +50,7 @@ class TimeService
5050private:
5151
5252 ConnectionHandler * _con_hdl;
53- #if defined (ARDUINO_ARCH_SAMD) || defined (TARGET_PORTENTA_H7 )
53+ #if defined (ARDUINO_ARCH_SAMD) || defined (ARDUINO_ARCH_MBED )
5454 bool _is_rtc_configured;
5555#endif
5656
You can’t perform that action at this time.
0 commit comments