|
|
@@ -114,7 +114,8 @@ int get_acc_vol(void) {
|
|
|
|
|
|
float get_vbus_current(void) {
|
|
|
#ifdef VBUS_I_CHAN
|
|
|
- return _ibus.filted_value;
|
|
|
+ s16 ibus = _ibus.filted_value * 10.0f;
|
|
|
+ return (float)ibus/10.0f;
|
|
|
#else
|
|
|
return 0;
|
|
|
#endif
|
|
|
@@ -224,7 +225,6 @@ void sample_mos_temp(void) {
|
|
|
r = MOS_TEMP_R(adc);
|
|
|
mos_temp1.value = ntc_get_mos_temp(r);
|
|
|
LowPass_Filter(mos_temp1.filted_value, mos_temp1.value, mos_temp1.lowpass);
|
|
|
-
|
|
|
#endif
|
|
|
#endif
|
|
|
}
|