forked

Revision:
170:19eb464bc2be
Parent:
167:e84263d55307
diff -r e3b6fe271b81 -r 19eb464bc2be targets/TARGET_STM/can_api.c
--- a/targets/TARGET_STM/can_api.c	Wed Jul 19 17:31:21 2017 +0100
+++ b/targets/TARGET_STM/can_api.c	Thu Aug 03 13:13:39 2017 +0100
@@ -85,8 +85,8 @@
         error("Cannot initialize CAN");
     }
 
-    // Set initial CAN frequency to 100 kb/s
-    if (can_frequency(obj, 100000) != 1) {
+    // Set initial CAN frequency to specified frequency
+    if (can_frequency(obj, hz) != 1) {
         error("Can frequency could not be set\n");
     }