ballle98/AqualinkD#46: Character highlight should not update highlight index

pull/94/head
Lee Ballard 2019-09-12 16:12:15 -05:00
parent b789b4e3c1
commit ec726a7395
1 changed files with 2 additions and 2 deletions

View File

@ -250,12 +250,12 @@ bool process_pda_menu_packet(unsigned char* packet, int length)
// PDA HlightChars | HEX: 0x10|0x02|0x62|0x10|0x02|0x02|0x09|0x00|0x91|0x10|0x03|
// PDA HlightChars | HEX: 0x10|0x02|0x62|0x10|0x03|0x02|0x09|0x00|0x92|0x10|0x03|
// PDA HlightChars | HEX: 0x10|0x02|0x62|0x10|0x02|0x02|0x03|0x01|0x8c|0x10|0x03|
// https://github.com/ballle98/AqualinkD/issues/46
// Character highlight should not update highlight index
if (packet[4] <= PDA_LINES) {
_hlightindex = packet[4];
_hlightcharindexstart = packet[5];
_hlightcharindexstop = packet[6];
} else {
_hlightindex = -1;
_hlightcharindexstart = -1;
_hlightcharindexstop = -1;
}