Mercurial > public > ostc4
diff Discovery/Src/tMenuEditCustom.c @ 700:c28c09017210
Bugfix motioncontrol frame deactivation:
In the previous version the frame indication the focus state could not be deactivated once it was activated. Rootcause was a fault in the bit operation of the configuration byte which has been fixed now.
author | Ideenmodellierer |
---|---|
date | Tue, 18 Oct 2022 21:21:32 +0200 |
parents | 1b995079c045 |
children | 10b7d271b9c4 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditCustom.c Tue Oct 18 20:56:19 2022 +0200 +++ b/Discovery/Src/tMenuEditCustom.c Tue Oct 18 21:21:32 2022 +0200 @@ -719,7 +719,7 @@ uint8_t OnAction_CViewPortLayout(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action) { SSettings* pSettings = settingsGetPointer(); - if(((pSettings->viewPortMode >> 4) & 0x10) != 0) + if((pSettings->viewPortMode & 0x10) != 0) { pSettings->viewPortMode &= 0xEF; /* 1110 1111 */ }