Return the mode of this serial channel (raw, panelDue, device, disabled)
| 2116 | |
| 2117 | // Return the mode of this serial channel (raw, panelDue, device, disabled) |
| 2118 | AuxMode Platform::GetChannelMode(size_t chan) const noexcept |
| 2119 | { |
| 2120 | return (chan == 0) ? auxModes[commsParams[0] & 7] |
| 2121 | #if HAS_AUX_DEVICES |
| 2122 | : (chan < NumSerialChannels) ? auxDevices[chan - 1].GetMode() |
| 2123 | #endif |
| 2124 | : AuxMode::disabled; |
| 2125 | } |
| 2126 | |
| 2127 | GCodeResult Platform::HandleM575(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException) |
| 2128 | { |