kopia lustrzana https://github.com/piotr022/UV_K5_playground
rodzic
37830cada6
commit
46e2f31bbd
|
@ -86,6 +86,7 @@ class CViewManager
|
|||
MainViewContext.OriginalFwStatus.b1MenuDrawed = *pMenuCheckData == 0xFF;
|
||||
MainViewContext.OriginalFwStatus.b1FrequencyScan = *pFrequencyScanCheckData;
|
||||
MainViewContext.OriginalFwStatus.b1RadioSpiCommInUse = !(GPIOC->DATA & 0b1);
|
||||
MainViewContext.OriginalFwStatus.b1LcdSpiCommInUse = !(GPIOB->DATA & GPIO_PIN_9);
|
||||
}
|
||||
|
||||
void HandlePressedButton(unsigned char u8Key)
|
||||
|
|
|
@ -85,7 +85,8 @@ public:
|
|||
static bool bIsCleared = true;
|
||||
static unsigned char u8SqlDelayCnt = 0xFF;
|
||||
|
||||
if (Context.OriginalFwStatus.b1RadioSpiCommInUse)
|
||||
if (Context.OriginalFwStatus.b1RadioSpiCommInUse ||
|
||||
Context.OriginalFwStatus.b1LcdSpiCommInUse)
|
||||
{
|
||||
return eScreenRefreshFlag::NoRefresh;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ struct TViewContext
|
|||
unsigned char b1LockScreen : 1;
|
||||
unsigned char b1FrequencyScan : 1;
|
||||
unsigned char b1RadioSpiCommInUse : 1;
|
||||
unsigned char b1LcdSpiCommInUse : 1;
|
||||
};
|
||||
}OriginalFwStatus;
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue