comparison Discovery/Inc/data_exchange_main.h @ 308:1203255481e4 cleanup-4

cleanup: introduce function setAvgDepth The simulator and the realtime code shared a literally identical piece of code to compute a running depth average. This is simply poor coding style, so factor this out and create a function to do this work. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Fri, 24 May 2019 09:02:46 +0200
parents cc9c18075e00
children b11e50415982
comparison
equal deleted inserted replaced
307:b6436edfb2c0 308:1203255481e4
46 void DataEX_copy_to_deco(void); 46 void DataEX_copy_to_deco(void);
47 void DateEx_copy_to_dataOut(void); 47 void DateEx_copy_to_dataOut(void);
48 uint32_t DataEX_lost_connection_count(void); 48 uint32_t DataEX_lost_connection_count(void);
49 void DataEX_control_connection_while_asking_for_sleep(void); 49 void DataEX_control_connection_while_asking_for_sleep(void);
50 uint8_t DataEX_check_RTE_version__needs_update(void); 50 uint8_t DataEX_check_RTE_version__needs_update(void);
51 51 void setAvgDepth(SDiveState *pStateReal);
52 52
53 SDataReceiveFromMaster * dataOutGetPointer(void); 53 SDataReceiveFromMaster * dataOutGetPointer(void);
54 54
55 uint16_t DataEX_debug_data(uint16_t *dataOut20x5); 55 uint16_t DataEX_debug_data(uint16_t *dataOut20x5);
56 56