소스 검색

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…
취소
저장