Merge remote-tracking branch 'origin/Elite_ZTcurve' into Elite_ZTcurve
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ static void Impedance_Calculate(uint16_t Voltage, int32_t Current) {
|
||||
|
||||
Voltage_32 = (int32_t)(Voltage);
|
||||
|
||||
Impedance = Voltage_32 / (Current*1000)/1000;
|
||||
Impedance = (Voltage_32/(Current*1000)) / 1000;
|
||||
|
||||
NotifyImpedance[0] = (uint8_t) (Impedance >> 24);
|
||||
NotifyImpedance[1] = (uint8_t) ((Impedance & 0x00FF0000) >> 16);
|
||||
|
||||
Reference in New Issue
Block a user