Bug fix for occasional wrong values in speeduino

This commit is contained in:
Pasi Kemppainen 2020-03-02 18:16:50 +02:00
parent 4b106a46c7
commit e4fe0d3522
1 changed files with 3 additions and 3 deletions

View File

@ -107,12 +107,12 @@ void loop() {
data58[2*i-8] = lowByte(uint16_t(EGT[i]));
data58[2*i-7] = highByte(uint16_t(EGT[i]));
}
if (Serial3.available () > 0) { //is there data on serial3, presumably from speeduino
while (Serial3.available () > 0) { //is there data on serial3, presumably from speeduino
CheckDataRequest(); //there is data, but is it request from speeduino and is it for EGTs
}
else{ //no data request from speeduino, so broadcast to CAN bus
// else{ //no data request from speeduino, so broadcast to CAN bus
// CanSend(); // not implemented yet
}
// }
Serial.print("EGT");
Serial.print(i+1);
Serial.print(" Temp: ");