diff Small_CPU/Src/scheduler.c @ 231:f6961efb3794 div-fixes-4-1

cleanup: do not re-implement a standard function I was triggered by a spelling error, but why implement a function that is standard? Again: trivial cleanup. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Wed, 03 Apr 2019 14:33:12 +0200
parents 3973208c4a20
children 625d20070261
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Wed Apr 03 14:16:59 2019 +0200
+++ b/Small_CPU/Src/scheduler.c	Wed Apr 03 14:33:12 2019 +0200
@@ -74,7 +74,6 @@
 
 _Bool vpm_crush2(void);
 void scheduleUpdateDeviceData(void);
-void initStructWithZeero(uint8_t* data, uint16_t length);
 long get_nofly_time_minutes(void);
 void copyActualGas(SGas gas);
 void copyPressureData(void);
@@ -98,7 +97,7 @@
 
 void initGlobals(void)
 {
-	initStructWithZeero((uint8_t*) &global, sizeof(SGlobal));
+	bzero(&global, sizeof(SGlobal));
 	
 	global.dataSendToSlavePending = 0;
 	global.dataSendToSlaveIsValid = 1;
@@ -1301,13 +1300,6 @@
 
 	}
 	return 0;
-};
-
-
-void initStructWithZeero(uint8_t* data, uint16_t length)
-{
-	for(uint16_t i = 0; i < length; i++)
-		data[i] = 0;
 }