Commented out case block for REG_FREQ_SIGN_SET in _next_state() function in vfd_spindle.c

This commit is contained in:
saifullah-N
2023-03-15 15:39:59 +05:30
parent 83094182f0
commit 998262c26b

View File

@@ -230,14 +230,14 @@ static bool _next_state()
vfd.state = REG_STOP_WRITE; vfd.state = REG_STOP_WRITE;
break; break;
case REG_FREQ_SIGN_SET: // case REG_FREQ_SIGN_SET:
if (vfd.power < 0) // if (vfd.power < 0)
vfd.state = REG_REV_WRITE; // vfd.state = REG_REV_WRITE;
else if (0 < vfd.power) // else if (0 < vfd.power)
vfd.state = REG_FWD_WRITE; // vfd.state = REG_FWD_WRITE;
else // else
vfd.state = REG_STOP_WRITE; // vfd.state = REG_STOP_WRITE;
break; // break;
case REG_STOP_WRITE: case REG_STOP_WRITE:
case REG_FWD_WRITE: case REG_FWD_WRITE: