Преглед на файлове

Serial flags followup

Followup to #21318
Scott Lahteine преди 4 години
родител
ревизия
0f23090545
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      Marlin/src/core/serial_base.h

+ 1
- 1
Marlin/src/core/serial_base.h Целия файл

124
   SerialFeature features(serial_index_t index=0) const { return static_cast<const Child*>(this)->features(index);  }
124
   SerialFeature features(serial_index_t index=0) const { return static_cast<const Child*>(this)->features(index);  }
125
 
125
 
126
   // Check if the serial port has a feature
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
   // Check if the serial port is connected (usually bypassed)
129
   // Check if the serial port is connected (usually bypassed)
130
   bool connected() const            { return SerialChild->connected(); }
130
   bool connected() const            { return SerialChild->connected(); }

Loading…
Отказ
Запис