Browse Source

Cleanup ExpectsResponse usage

D.R.racer 1 year ago
parent
commit
18423685b6
1 changed files with 1 additions and 1 deletions
  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: