[ALS2018]: enable PWM fan demo by lin transceiver sandbox/harunobu.kurokawa/als2018
authorYuichi Kusakabe <yuichi.kusakabe@denso-ten.com>
Thu, 14 Jun 2018 06:08:30 +0000 (15:08 +0900)
committerHarunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Thu, 14 Jun 2018 06:43:57 +0000 (15:43 +0900)
Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@denso-ten.com>
binding/hvac-demo-binding.c

index fdc9afc..cf8e7fb 100644 (file)
@@ -38,7 +38,7 @@
 #define GREEN "/sys/class/leds/blinkm-24-9-green/brightness"
 #include <afb/afb-binding.h>
 
-#define CAN_DEV "vcan0"
+#define CAN_DEV "sllin0"
 
 #ifndef NULL
 #define NULL 0
@@ -463,6 +463,7 @@ static int write_can()
 
         if(!can_handler.simulation)
         {
+            usleep(100000);
             rc = (int)sendto(can_handler.socket, &txCanFrame, sizeof(struct can_frame), 0,
                     (struct sockaddr*)&can_handler.txAddress, sizeof(can_handler.txAddress));
             if (rc < 0)