|
|
@@ -97,7 +97,7 @@ static u16 _motor_limit(void) {
|
|
|
static int temp_sensor_err = 0;
|
|
|
static u16 lim_value = HW_LIMIT_NONE;
|
|
|
s16 temp = get_motor_temp_raw();
|
|
|
- if (ABS(temp - mot_temp) >= 20) {
|
|
|
+ if ((temp == 300) || ABS(temp - mot_temp) >= 20) {
|
|
|
if (temp_sensor_err < 20) {
|
|
|
temp_sensor_err++;
|
|
|
}else {
|
|
|
@@ -154,7 +154,7 @@ static u16 _mos_limit(void) {
|
|
|
static int temp_sensor_err = 0;
|
|
|
static u16 lim_value = HW_LIMIT_NONE;
|
|
|
s16 temp = get_mos_temp_raw();
|
|
|
- if (ABS(temp - mos_temp) >= 20) {
|
|
|
+ if ((temp == -40) || ABS(temp - mos_temp) >= 20) {
|
|
|
if (temp_sensor_err < 20) {
|
|
|
temp_sensor_err++;
|
|
|
}else {
|