Skip to content

Commit bf3dab5

Browse files
committed
Fix(Time Sync): Fix RTC creation
Fixes an issue creating the virtual RTC for time synchronisation. The RTC object is now correctly validated.
1 parent bde2873 commit bf3dab5

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This document outlines the changes made between versions of the **Goat - Pico Network Manager** library.
44

5+
## V1.1.7
6+
7+
### Bug Fixes
8+
9+
#### Time Synchronisation
10+
11+
Fixes an issue with virtual RTC creation.
12+
513
## V1.1.6
614

715
### Changes

src/NetworkManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ async def get_ntp_time(self):
486486
parsed_time[5], 0) # Subseconds set to 0
487487

488488
# Create RTC object
489-
if not isinstance(self.rtc, object):
489+
if not isinstance(self.rtc, machine.RTC):
490490
self.rtc = machine.RTC()
491491

492492
# Set RTC time

0 commit comments

Comments
 (0)