Skip to content

Commit

Permalink
Serial flags followup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and W4tel-BiDi committed Apr 5, 2021
1 parent 885c386 commit 72f0d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/core/serial_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct SerialBase {
SerialFeature features(serial_index_t index=0) const { return static_cast<const Child*>(this)->features(index); }

// 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)
bool connected() const { return SerialChild->connected(); }
Expand Down

0 comments on commit 72f0d23

Please sign in to comment.