Serial flags followup

Followup to #21318
This commit is contained in:
Scott Lahteine 2021-03-29 22:38:33 -05:00 committed by Scott Lahteine
parent 4e77fe50a4
commit 2b0fcc79c5

View File

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