Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StartEnigma] config.misc.SyncTimeUsing
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c58a6ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this now the reverse of what is needed?
You can set two methods for SyncTimeUsing - NTP or Transponder
If you are using NTP then the
ntpdate-sync
script (which is what is used) will be updating the real time clock when it runsBut if you are using the transponder (I'm presuming is what "dvb" is above) then this doesn't happen, and this code is there so that it does get updated.
So the two checks should not be negated. and the comment reversed.
EDIT: Actually the hwclock isn't set by ntpdate-sync either (can be, but isn't).
Why not just set the RTC unconditionally?
c58a6ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@original-birdman this just fixes something missed earlier here: 2ea8eb4
If there is problem with the logic it would have been around a long time.
c58a6ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway RTC is set in NetworkTime.py on boot and thereafter every n minutes as corresponds to the user selected update interval (irrespective of dvb/ntp).
c58a6ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@original-birdman best we continue this in the forum Dev section.