mirror of
https://git.btclock.dev/btclock/btclock_v3
synced 2025-06-06 18:31:01 +00:00
Fix screen rotation
This commit is contained in:
parent
6dfc15832b
commit
a11e275ce1
@ -216,12 +216,12 @@ void taskScreenRotate(void *pvParameters)
|
|||||||
{
|
{
|
||||||
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
||||||
|
|
||||||
int nextScreen = (currentScreen + 1) % 5;
|
int nextScreen = (currentScreen + 1) % SCREEN_COUNT;
|
||||||
String key = "screen" + String(nextScreen) + "Visible";
|
String key = "screen" + String(nextScreen) + "Visible";
|
||||||
|
|
||||||
while (!preferences.getBool(key.c_str(), true))
|
while (!preferences.getBool(key.c_str(), true))
|
||||||
{
|
{
|
||||||
nextScreen = (nextScreen + 1) % 5;
|
nextScreen = (nextScreen + 1) % SCREEN_COUNT;
|
||||||
key = "screen" + String(nextScreen) + "Visible";
|
key = "screen" + String(nextScreen) + "Visible";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user