mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #14293 from kaspar030/fix_ztimer_frac_slowdown_max_value
ztimer: convert_frac: use self->scale_now for max_value
This commit is contained in:
commit
56962f86fb
@ -100,7 +100,7 @@ void ztimer_convert_frac_init(ztimer_convert_frac_t *self,
|
||||
|
||||
ztimer_convert_frac_compute_scale(self, freq_self, freq_lower);
|
||||
if (freq_self < freq_lower) {
|
||||
self->super.super.max_value = frac_scale(&self->scale_set, UINT32_MAX);
|
||||
self->super.super.max_value = frac_scale(&self->scale_now, UINT32_MAX);
|
||||
ztimer_init_extend(&self->super.super);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user