Skip to content

Commit

Permalink
Fix unimplemented host RtcClass::setRtcNanoseconds()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 28, 2024
1 parent fad8045 commit 3973f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Arch/Host/Platform/RTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ uint32_t RtcClass::getRtcSeconds()

bool RtcClass::setRtcNanoseconds(uint64_t nanoseconds)
{
return false;
return setRtcSeconds(nanoseconds / 1'000'000'000ULL);
}

bool RtcClass::setRtcSeconds(uint32_t seconds)
Expand Down

0 comments on commit 3973f07

Please sign in to comment.