Skip to content

Commit

Permalink
vclk_phase.cfg supports downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ligenxxxx committed Apr 26, 2024
1 parent cd72b2c commit a517de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void vclk_phase_load_system_cfg() {
if (vclk_phase_read_cfg_file("/mnt/app/vclk_phase.cfg")) {
// if no .cfg file, write it.
vclk_phase_write_cfg_file("/mnt/app/vclk_phase.cfg");
} else if (vclk_phase_load[VIDEO_SOURCE_VERSION] != 0xffffffff && vclk_phase_load[VIDEO_SOURCE_VERSION] > vclk_phase[VIDEO_SOURCE_VERSION]) {
} else if (vclk_phase_load[VIDEO_SOURCE_VERSION] != 0xffffffff && vclk_phase_load[VIDEO_SOURCE_VERSION] != vclk_phase[VIDEO_SOURCE_VERSION]) {
// newer .cfg file version
vclk_phase_write_cfg_file("/mnt/app/vclk_phase.cfg");
} else {
Expand Down

0 comments on commit a517de5

Please sign in to comment.