瀏覽代碼

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,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…
取消
儲存