Mercurial > public > ostc4
comparison Discovery/Src/base.c @ 745:b392524753fb
Update Sentinel protocol:
The Sentinel protocol is now supported by autodetection.
Added Autodetection indicator:
In the previous version no indicator showed that an auto detection is running. A new pseudo sensor type has been introduced which now causes the auto detection string to be displayed while the detection is running in the background.
| author | Ideenmodellierer |
|---|---|
| date | Sun, 19 Feb 2023 21:52:02 +0100 |
| parents | 5078da3845c0 |
| children | da8126d5ea9f |
comparison
equal
deleted
inserted
replaced
| 744:dd5db6e2c9a4 | 745:b392524753fb |
|---|---|
| 728 | 728 |
| 729 static void TriggerButtonUnlock() | 729 static void TriggerButtonUnlock() |
| 730 { | 730 { |
| 731 static uint32_t lastInput = 0; | 731 static uint32_t lastInput = 0; |
| 732 uint8_t action = ButtonAction; | 732 uint8_t action = ButtonAction; |
| 733 SStateList status; | |
| 734 SSettings* pSettings; | |
| 735 pSettings = settingsGetPointer(); | |
| 736 | 733 |
| 737 if(action != ACTION_END) | 734 if(action != ACTION_END) |
| 738 { | 735 { |
| 739 if(((time_elapsed_ms(lastInput, HAL_GetTick()) < 2000)) || (ButtonLockState == LOCK_FIRST_PRESS)) | 736 if(((time_elapsed_ms(lastInput, HAL_GetTick()) < 2000)) || (ButtonLockState == LOCK_FIRST_PRESS)) |
| 740 { | 737 { |
