aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2016-11-30 16:52:40 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2016-11-30 16:52:40 +0000
commitdb16f418edd9f5f8c0093d807e69bb4ac941ebaa (patch)
tree68587205d986394f021a3de20cadcbdafc719989
parentb908e195261b8e7cd6a0c648644ef72e930f9334 (diff)
Updated README with new set method
Change-Id: Ie0923ca6cf02115073052736de1bb980b5987f85 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Conflicts: hvac-hybrid-qml-binding.c
-rw-r--r--hvac-hybrid-qml-binding.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/hvac-hybrid-qml-binding.c b/hvac-hybrid-qml-binding.c
index 9097d9a..0ff7c22 100644
--- a/hvac-hybrid-qml-binding.c
+++ b/hvac-hybrid-qml-binding.c
@@ -61,15 +61,15 @@ struct can_handler {
struct sockaddr_can txAddress;
};
-/***************************************************************************************/
-/***************************************************************************************/
-/** **/
-/** **/
-/** SECTION: HANDLE CAN DEVICE **/
-/** **/
-/** **/
-/***************************************************************************************/
-/***************************************************************************************/
+/*****************************************************************************************/
+/*****************************************************************************************/
+/** **/
+/** **/
+/** SECTION: HANDLE CAN DEVICE **/
+/** **/
+/** **/
+/*****************************************************************************************/
+/*****************************************************************************************/
static struct can_handler open_can_dev()
{
@@ -124,13 +124,13 @@ static void close_can_dev(struct can_handler ch)
// Get original get temperature function from cpp hvacplugin code
static uint8_t get_temperature(uint8_t value)
{
- uint8_t result = ((0xF0 - 0x10) / 15) * value - 16;
- if (result < 0x10)
+ uint8_t result = ((0xF0 - 0x10) / 15) * value - 16;
+ if (result < 0x10)
result = 0x10;
- if (result > 0xF0)
+ if (result > 0xF0)
result = 0xF0;
- return result;
+ return result;
}
static void write_can(struct can_handler ch)
@@ -184,15 +184,15 @@ static uint8_t make_atoi(const char *str)
return str ? atoi(str) : 0;
}
-/***************************************************************************************/
-/***************************************************************************************/
-/** **/
-/** **/
-/** SECTION: BINDING VERBS IMPLEMENTATION **/
-/** **/
-/** **/
-/***************************************************************************************/
-/***************************************************************************************/
+/*****************************************************************************************/
+/*****************************************************************************************/
+/** **/
+/** **/
+/** SECTION: BINDING VERBS IMPLEMENTATION **/
+/** **/
+/** **/
+/*****************************************************************************************/
+/*****************************************************************************************/
/*
* @brief Simple afb-daemon ping