Explorar el Código

Cleanup ExpectsResponse usage

D.R.racer hace 2 años
padre
commit
18423685b6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Firmware/mmu2_protocol_logic.cpp

+ 1 - 1
Firmware/mmu2_protocol_logic.cpp

@@ -163,7 +163,7 @@ StepStatus ProtocolLogic::ProcessVersionResponse(uint8_t stage) {
 }
 
 StepStatus ProtocolLogic::ScopeStep() {
-    if ((uint_fast8_t)scopeState & (uint8_t)ScopeState::NotExpectsResponse) {
+    if ( ! ExpectsResponse() ) {
         // we are waiting for something
         switch (currentScope) {
         case Scope::DelayedRestart: