Gate kinda works, but needs some tweaking of the values

This commit is contained in:
Oleksiy
2024-10-18 00:13:24 +03:00
parent c5b9ebe868
commit 0d41ff9cbd
3 changed files with 28 additions and 15 deletions

View File

@ -231,7 +231,7 @@ void updateScreen() {
} else if (channels[displayTab - 1].mode == 3) {
valueStr = String(channels[displayTab - 1].swing) + "%";
} else if (channels[displayTab - 1].mode == 4) {
valueStr = String(channels[displayTab - 1].gate) + "%";
valueStr = String(channels[displayTab - 1].gate);
}
u8g2.setFont(stkL);
if ((!insideTab && shiftBtnPushed) || (insideTab && menuItem == 0 && (menuItemSelected || shiftBtnPushed))) {
@ -272,10 +272,11 @@ void updateScreen() {
}
}
valueStr = F("t");
if (masterClockMode == 0 && !isPlaying) {
valueStr = F("t");
u8g2.drawUTF8(121, yPos, valueStr.c_str() );
} else if (masterClockMode == 0 && isPlaying) {
valueStr = F("r");
u8g2.drawUTF8(122, yPos, valueStr.c_str() );
}
}