File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed 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 (ARDUINO_ARCH_MBED )
54+ #if defined (ARDUINO_ARCH_SAMD) || defined (TARGET_PORTENTA_H7 )
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 ARDUINO_ARCH_MBED
82+ #elif TARGET_PORTENTA_H7
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 ARDUINO_ARCH_MBED
31+ #ifdef TARGET_PORTENTA_H7
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 (ARDUINO_ARCH_MBED )
53+ #if defined (ARDUINO_ARCH_SAMD) || defined (TARGET_PORTENTA_H7 )
5454 bool _is_rtc_configured;
5555#endif
5656
You can’t perform that action at this time.
0 commit comments