Mercurial > public > ostc4
comparison Discovery/Src/t6_apnea.c @ 837:18946846b95b Evo_2_23
Bugfixes and code cleanup for BF views:
BF views gauge and apnoe were using "dive computer" T3 view functions which caused some problem because these legacy views were not intended to work with customer view selection. A switch condition has been added to skip these kind of functions in case a design other T3 is in use.
Another potential problem was that there were two definitions for T3 and T7 views which were basically the same. If they wold not be the same the switching functionality wold not work properly. To avoid this problem in futur the arrays have been merged => the view are handled sing the (newer) cv_view arrays instead of the standard_views which were in used before the user could the views which should be shown.
author | ideenmodellierer |
---|---|
date | Wed, 27 Dec 2023 19:37:17 +0100 |
parents | 65c7b009136f |
children |
comparison
equal
deleted
inserted
replaced
836:8d6c35655d4d | 837:18946846b95b |
---|---|
44 GFX_DrawCfgWindow t6r1; | 44 GFX_DrawCfgWindow t6r1; |
45 GFX_DrawCfgWindow t6c1; | 45 GFX_DrawCfgWindow t6c1; |
46 GFX_DrawCfgWindow t6c2; | 46 GFX_DrawCfgWindow t6c2; |
47 GFX_DrawCfgWindow t6c3; // for menu text | 47 GFX_DrawCfgWindow t6c3; // for menu text |
48 | 48 |
49 uint8_t t6_selection_customview = 0; | 49 uint8_t t6_selection_customview = CVIEW_T3_noneOrDebug; |
50 | 50 |
51 /* Imported function prototypes ---------------------------------------------*/ | 51 /* Imported function prototypes ---------------------------------------------*/ |
52 | 52 |
53 /* Private types -------------------------------------------------------------*/ | 53 /* Private types -------------------------------------------------------------*/ |
54 | 54 |
59 | 59 |
60 #define TEXTSIZE 16 | 60 #define TEXTSIZE 16 |
61 | 61 |
62 const uint8_t t6_customviewsStandard[] = | 62 const uint8_t t6_customviewsStandard[] = |
63 { | 63 { |
64 CVIEW_noneOrDebug, | 64 CVIEW_T3_noneOrDebug, |
65 CVIEW_T3_Temperature, | 65 CVIEW_T3_Temperature, |
66 CVIEW_T3_END | 66 CVIEW_T3_END |
67 }; | 67 }; |
68 | 68 |
69 const uint8_t *t6_customviews = t6_customviewsStandard; | 69 const uint8_t *t6_customviews = t6_customviewsStandard; |