1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/can: fix typo 'theoritical' -> 'theoretical'

This commit is contained in:
Alexandre Abadie 2020-10-02 08:09:37 +02:00
parent eefcfd16e2
commit 3186c8973f
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -503,7 +503,7 @@ int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const *
tseg >= timing_const->tseg1_min + timing_const->tseg2_min; tseg--) {
uint32_t nbt = tseg + CAN_SYNC_SEG;
/* theoritical brp */
/* theoretical brp */
uint32_t brp = clock / (timing->bitrate * nbt);
/* brp according to brp_inc */
brp = (brp / timing_const->brp_inc) * timing_const->brp_inc;