|
@@ -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(); }
|