From: Yuichi Kusakabe Date: Thu, 14 Jun 2018 06:08:30 +0000 (+0900) Subject: [ALS2018]: enable PWM fan demo by lin transceiver X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fharunobu.kurokawa%2Fals2018;p=apps%2Fhvac.git [ALS2018]: enable PWM fan demo by lin transceiver Signed-off-by: Harunobu Kurokawa Signed-off-by: Yuichi Kusakabe --- diff --git a/binding/hvac-demo-binding.c b/binding/hvac-demo-binding.c index fdc9afc..cf8e7fb 100644 --- a/binding/hvac-demo-binding.c +++ b/binding/hvac-demo-binding.c @@ -38,7 +38,7 @@ #define GREEN "/sys/class/leds/blinkm-24-9-green/brightness" #include -#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)