Fixed comparison between char and int.

merge-requests/1/merge
Elliott Liggett 2019-01-14 14:30:28 -08:00
rodzic 4c056fe61b
commit 0da6babb7a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -189,7 +189,7 @@ void commHandler::receiveDataIn()
// good! // good!
port->commitTransaction(); port->commitTransaction();
emit haveDataFromPort(inPortData); emit haveDataFromPort(inPortData);
if( (inPortData[2] == 0x00) || (inPortData[2] == 0xE0) || (inPortData[3] == 0xE0) ) if( (inPortData[2] == (char)0x00) || (inPortData[2] == (char)0xE0) || (inPortData[3] == (char)0xE0) )
{ {
// send to the pseudo port as well // send to the pseudo port as well
// index 2 is dest, 0xE1 is wfview, 0xE0 is assumed to be the other device. // index 2 is dest, 0xE1 is wfview, 0xE0 is assumed to be the other device.