1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-16 18:30:32 +00:00

Count time in phase correctly.

This commit is contained in:
Thomas Harte 2024-03-21 21:15:25 -04:00
parent 0f8bc416d1
commit bbc0d8b050

View File

@ -192,6 +192,7 @@ struct Video {
}
phase_ = new_phase;
time_in_phase_ = 0;
}
}
@ -229,7 +230,7 @@ private:
uint32_t position = 0;
Phase phase = Phase::Sync;
void increment_position(int divider) {
void increment_position(uint32_t divider) {
++position;
if(position == 1024 * divider) position = 0;
}