diff --git a/sys/can/device.c b/sys/can/device.c index 5ff7b72ce80fef4af89432d9273ea1b8f6c9f4a7..6e58c60981362f9b58c6dd81abfb6cc5fcfae61f 100644 --- a/sys/can/device.c +++ b/sys/can/device.c @@ -473,11 +473,10 @@ int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const * uint32_t spt_error; uint32_t min_spt_error = UINT32_MAX; uint32_t best_brp = 0; - uint32_t tseg; - uint32_t tseg1; - uint32_t tseg2; + uint32_t tseg = 0; + uint32_t tseg1 = 0; + uint32_t tseg2 = 0; uint32_t best_tseg = 0; - uint32_t rate; /* current bitrate */ uint32_t rate_error; uint32_t min_rate_error;