Procházet zdrojové kódy

Serial flags followup

Followup to #21318
Scott Lahteine před 4 roky
rodič
revize
0f23090545
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      Marlin/src/core/serial_base.h

+ 1
- 1
Marlin/src/core/serial_base.h Zobrazit soubor

@@ -124,7 +124,7 @@ struct SerialBase {
124 124
   SerialFeature features(serial_index_t index=0) const { return static_cast<const Child*>(this)->features(index);  }
125 125
 
126 126
   // Check if the serial port has a feature
127
-  bool has_feature(serial_index_t index, SerialFeature flag) const { (features(index) & flag) != SerialFeature::None; }
127
+  bool has_feature(serial_index_t index, SerialFeature flag) const { return (features(index) & flag) != SerialFeature::None; }
128 128
 
129 129
   // Check if the serial port is connected (usually bypassed)
130 130
   bool connected() const            { return SerialChild->connected(); }

Loading…
Zrušit
Uložit