1
0
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:
Alexandre Abadie 2020-06-16 19:30:54 +02:00 committed by GitHub
commit 56962f86fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {