Mercurial > public > ostc4
comparison Discovery/Src/tMenuEdit.c @ 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 | c31237d20491 |
children | 4abfb8a2a435 |
comparison
equal
deleted
inserted
replaced
785:3c0b16473af4 | 786:19ab6f3ed52a |
---|---|
350 uint32_t globState = get_globalState(); | 350 uint32_t globState = get_globalState(); |
351 | 351 |
352 exitMenuEdit(1); | 352 exitMenuEdit(1); |
353 switch(globState) | 353 switch(globState) |
354 { | 354 { |
355 case (StMHARD3_O2_Sensor3): openInfo_Sensor(3); | 355 case (StMHARD3_O2_Sensor3): openInfo_Sensor(2); |
356 break; | 356 break; |
357 case (StMHARD3_O2_Sensor2): openInfo_Sensor(2); | 357 case (StMHARD3_O2_Sensor2): openInfo_Sensor(1); |
358 break; | 358 break; |
359 default: | 359 default: |
360 case (StMHARD3_O2_Sensor1): openInfo_Sensor(1); | 360 case (StMHARD3_O2_Sensor1): openInfo_Sensor(0); |
361 break; | 361 break; |
362 } | 362 } |
363 } | 363 } |
364 | 364 |
365 | 365 |