# HG changeset patch
# User Edouard Tisserant
# Date 1583757645 -3600
# Node ID a108677bd3d0b2b5cff147383adcdd94f0a1fe99
# Parent 84c16ece8e108a0a762909c7b1fb2e1d169bf738
SVGHMI: whitespaces
diff -r 84c16ece8e10 -r a108677bd3d0 svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Fri Mar 06 14:43:03 2020 +0100
+++ b/svghmi/gen_index_xhtml.xslt Mon Mar 09 13:40:45 2020 +0100
@@ -1237,8 +1237,6 @@
svg_root.setAttribute('viewBox',new_desc.bbox.join(" "));
-
-
current_page = page_name;
diff -r 84c16ece8e10 -r a108677bd3d0 svghmi/svghmi.c
--- a/svghmi/svghmi.c Fri Mar 06 14:43:03 2020 +0100
+++ b/svghmi/svghmi.c Mon Mar 09 13:40:45 2020 +0100
@@ -149,12 +149,12 @@
{
printf("BUG!!! %%d + %%ld + %%d > %%ld \n", sbufidx, sizeof(uint32_t), sz, sizeof(sbuf));
AtomicCompareExchange(&dsc->wlock, 1, 0);
- return EOVERFLOW;
+ return EOVERFLOW;
}
}
AtomicCompareExchange(&dsc->wlock, 1, 0);
- return 0;
+ return 0;
}
static int read_iterator(uint32_t index, hmi_tree_item_t *dsc)
@@ -288,7 +288,7 @@
{
uint32_t index = *(uint32_t*)(cursor);
uint8_t const *valptr = cursor + sizeof(uint32_t);
-
+
if(index == heartbeat_index)
was_hearbeat = 1;
@@ -316,12 +316,12 @@
AtomicCompareExchange(&dsc->rlock, 1, 0);
progress = sz + sizeof(uint32_t) /* index */;
}
- else
+ else
{
return -EINVAL;
}
}
- else
+ else
{
return -EINVAL;
}
@@ -345,12 +345,12 @@
hmi_tree_item_t *dsc = &hmi_tree_item[index];
update_refresh_period(dsc, refresh_period_ms);
}
- else
+ else
{
return -EINVAL;
}
- progress = sizeof(uint32_t) /* index */ +
+ progress = sizeof(uint32_t) /* index */ +
sizeof(uint16_t) /* refresh period */;
}
break;