Fix div() operation that wasn't working properly on unsigned int
This commit is contained in:
parent
8a5888edc3
commit
14e4c75eec
|
@ -140,7 +140,7 @@ void sendValues(int length)
|
|||
response[11] = 0x00; //Air Correction (%)
|
||||
response[12] = 0x00; //Warmup enrichment (%)
|
||||
response[13] = (byte)(div(currentStatus.RPM, 100).quot); //rpm / 100
|
||||
response[14] = (byte)(div(currentStatus.PW, 200).quot); //Pulsewidth 1 multiplied by 10 in ms. Have to convert from uS to mS.
|
||||
response[14] = (byte)(currentStatus.PW / 200); //Pulsewidth 1 multiplied by 10 in ms. Have to convert from uS to mS.
|
||||
response[15] = 0x00; //acceleration enrichment (ms)
|
||||
response[16] = 0x00; //Barometer correction (%)
|
||||
response[17] = currentStatus.corrections; //Total GammaE (%)
|
||||
|
|
Loading…
Reference in New Issue