mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-09 02:42:02 +00:00
fix: correct timecode drift at non-25fps frame rates
Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
parent
ee3bbbe29f
commit
60d57f74d8
2 changed files with 12 additions and 11 deletions
|
|
@ -32,6 +32,7 @@ impl LtcFrame {
|
|||
/// Compare just HH:MM:SS against local time.
|
||||
pub fn matches_system_time(&self) -> bool {
|
||||
let local = Local::now();
|
||||
// We only compare hours, minutes and seconds - frames are not considered in this comparison
|
||||
local.hour() == self.hours
|
||||
&& local.minute() == self.minutes
|
||||
&& local.second() == self.seconds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue