diff --git a/speeduino/speeduino.ino b/speeduino/speeduino.ino index 58410965..2dbf5730 100644 --- a/speeduino/speeduino.ino +++ b/speeduino/speeduino.ino @@ -293,7 +293,9 @@ void loop() if(configPage10.fuel2Mode == FUEL2_MODE_MULTIPLY) { //Fuel 2 table is treated as a % value. Table 1 and 2 are multiplied together and divded by 100 - totalVE = ((uint16_t)currentStatus.VE * (uint16_t)currentStatus.VE2) / 100; + uint16_t combinedVE = ((uint16_t)currentStatus.VE * (uint16_t)currentStatus.VE2) / 100; + if(combinedVE <= 255) { totalVE = combinedVE; } + else { totalVE = 255; } } else if(configPage10.fuel2Mode == FUEL2_MODE_ADD) {