13
0

Mackie Control: Fix one off error in timecode display that broke spaces

Ignored spaces and allowed character 0x60 which is not valid on the display
This commit is contained in:
Todd Naugle 2021-08-10 16:16:08 -05:00
parent 975427ea4f
commit 563309f6d1

View File

@ -1186,9 +1186,9 @@ translate_seven_segment (char achar)
{
achar = toupper (achar);
if (achar >= 0x40 && achar <= 0x60) {
if (achar >= 0x40 && achar <= 0x5f) {
return achar - 0x40;
} else if (achar >= 0x21 && achar <= 0x3f) {
} else if (achar >= 0x20 && achar <= 0x3f) {
return achar;
} else {
return 0x00;