Procházet zdrojové kódy

Cleanup ExpectsResponse usage

D.R.racer před 2 roky
rodič
revize
18423685b6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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: