Skip to content

Commit b280255

Browse files
committed
STM-can-api: Fixed variable name for H7
- can_frequency uses f instead of hz for can frequency
1 parent 2a13fa1 commit b280255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/can_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int can_frequency(can_t *obj, int f)
287287
#else
288288
// STM32H7 doesn't support yet HAL_RCCEx_GetPeriphCLKFreq for FDCAN
289289
// Internal ST ticket 92465
290-
int ntq = 10000000 / hz;
290+
int ntq = 10000000 / f;
291291
#endif
292292

293293
int nominalPrescaler = 1;

0 commit comments

Comments
 (0)