Skip to content

Commit 6575318

Browse files
swap the temps
1 parent 9d7164f commit 6575318

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Core/Src/u_threads.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ void vEFuses(ULONG thread_input) {
449449
case EF_ON: efuse_enable(EFUSE_PUMP1); break;
450450
case EF_OFF: efuse_disable(EFUSE_PUMP1); break;
451451
case EF_AUTO:
452-
if(motor_temp >= PUMP1_UPPERBOUND) {
452+
if(controller_temp >= PUMP1_UPPERBOUND) {
453453
efuse_enable(EFUSE_PUMP1);
454-
} else if (motor_temp <= PUMP1_LOWERBOUND) {
454+
} else if (controller_temp <= PUMP1_LOWERBOUND) {
455455
efuse_disable(EFUSE_PUMP1);
456456
}
457457
break;
@@ -465,9 +465,9 @@ void vEFuses(ULONG thread_input) {
465465
case EF_ON: efuse_enable(EFUSE_PUMP2); break;
466466
case EF_OFF: efuse_disable(EFUSE_PUMP2); break;
467467
case EF_AUTO:
468-
if(controller_temp >= PUMP2_UPPERBOUND) {
468+
if(motor_temp >= PUMP2_UPPERBOUND) {
469469
efuse_enable(EFUSE_PUMP2);
470-
} else if (controller_temp <= PUMP2_LOWERBOUND) {
470+
} else if (motor_temp <= PUMP2_LOWERBOUND) {
471471
efuse_disable(EFUSE_PUMP2);
472472
}
473473
break;

0 commit comments

Comments
 (0)