Merge pull request #2569 from kwagyeman/kwabena/genx320_freq_round_up

sensors/genx320: Round frequency calc.
This commit is contained in:
Ibrahim Abdelkader 2024-12-31 08:58:11 +02:00 committed by GitHub
commit 83a9df84cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@
#define EVENT_THRESHOLD_TO_CALIBRATE 100000
#define EVENT_THRESHOLD_SIGMA 10
#define EVT_CLK_FREQ (omv_csi_get_xclk_frequency() / 1000000)
#define EVT_CLK_FREQ ((omv_csi_get_xclk_frequency() + 500000) / 1000000)
#define EVT_SCALE_PERIOD(period) (((period) * EVT_CLK_FREQ) / 10)
#define AFK_50_HZ (50)