Mercurial > public > ostc4
diff Small_CPU/Inc/externalInterface.h @ 786:19ab6f3ed52a
Cleanup sensor data interface:
In a very early implementation of the multiplexer the address of the mux was 0 followed by the sensors. As a resul the ID of the channels was shifted by one. To avoid confusion and because the mux address is meanwhile changed to the last address, it makes sense to return to the indexing where only the three visible sensor slots are used as reference (0,1,2).
author | Ideenmodellierer |
---|---|
date | Sun, 04 Jun 2023 21:54:24 +0200 |
parents | 01b3eb9d55c3 |
children | bb37d4f3e50e |
line wrap: on
line diff
--- a/Small_CPU/Inc/externalInterface.h Wed May 31 08:44:07 2023 +0200 +++ b/Small_CPU/Inc/externalInterface.h Sun Jun 04 21:54:24 2023 +0200 @@ -87,7 +87,7 @@ void externalInterface_SetCO2State(uint16_t state); uint16_t externalInterface_GetCO2State(void); uint8_t externalInterface_GetSensorData(uint8_t sensorId, uint8_t* pDataStruct); -void externalInterface_SetSensorData(uint8_t dataId, uint8_t* pDataStruct); +void externalInterface_SetSensorData(uint8_t sensorId, uint8_t* pDataStruct); void externalInface_SetSensorMap(uint8_t* pMap); uint8_t* externalInterface_GetSensorMapPointer(uint8_t finalMap); void externalInterface_AutodetectSensor(void);