Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditCustom.c @ 988:d9290c76b840 GasConsumption
OSTC4/5 joined code:
In the previous version code differences between OSTC4/5 were identified using the ENABLE_GPIO_V2 compiler switch. In the new version this is done using the display version as indicator which OSTC model is in used. Since this is detected by Firmware the information is forwarded from there to the RTE. This causes a little delay in the GPIO initialization but this applies only to the cold start of the RTE which should not happen very often.
author | ideenmodellierer |
---|---|
date | Sun, 06 Apr 2025 21:02:17 +0200 (5 weeks ago) |
parents | e9c37071933b |
children | 8507a87f6401 |
comparison
equal
deleted
inserted
replaced
984:41136649b90d | 988:d9290c76b840 |
---|---|
38 #include "t7.h" | 38 #include "t7.h" |
39 #include "data_exchange_main.h" | 39 #include "data_exchange_main.h" |
40 #include "motion.h" | 40 #include "motion.h" |
41 #include "tMenu.h" | 41 #include "tMenu.h" |
42 #include "tMenuSystem.h" | 42 #include "tMenuSystem.h" |
43 #include "ostc.h" | |
43 #include <math.h> | 44 #include <math.h> |
44 | 45 |
45 | 46 |
46 #define CV_PER_PAGE (5u) /* number of cv selections shown at one page */ | 47 #define CV_PER_PAGE (5u) /* number of cv selections shown at one page */ |
47 #define MAX_BACKLIGHT_BOOST (2u) /* max number of backlight levels which may be increased during focus state */ | 48 #define MAX_BACKLIGHT_BOOST (2u) /* max number of backlight levels which may be increased during focus state */ |
377 break; | 378 break; |
378 #ifdef ENABLE_MOTION_CONTROL | 379 #ifdef ENABLE_MOTION_CONTROL |
379 case 5: openEdit_ViewPort(); | 380 case 5: openEdit_ViewPort(); |
380 break; | 381 break; |
381 #endif | 382 #endif |
382 #ifdef ENABLE_GPIO_V2 | 383 case 5: if(isNewDisplay()) |
383 case 5: openEdit_WarningBuz(); | 384 { |
385 openEdit_WarningBuz(); | |
386 } | |
384 break; | 387 break; |
385 #endif | |
386 } | 388 } |
387 } | 389 } |
388 | 390 |
389 /* Private functions ---------------------------------------------------------*/ | 391 /* Private functions ---------------------------------------------------------*/ |
390 void openEdit_Customview(void) | 392 void openEdit_Customview(void) |
478 SSettings *pSettings = settingsGetPointer(); | 480 SSettings *pSettings = settingsGetPointer(); |
479 | 481 |
480 if(pSettings->warningBuzzer == 0) | 482 if(pSettings->warningBuzzer == 0) |
481 { | 483 { |
482 pSettings->warningBuzzer = 1; | 484 pSettings->warningBuzzer = 1; |
485 requestBuzzerActivation(1); | |
483 } | 486 } |
484 else | 487 else |
485 { | 488 { |
486 pSettings->warningBuzzer = 0; | 489 pSettings->warningBuzzer = 0; |
487 } | 490 } |