Merge remote-tracking branch 'origin/Elite_ZTcurve' into Elite_ZTcurve

This commit is contained in:
alan
2019-09-03 12:39:07 +08:00
@@ -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);