MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetChannelMode

Method GetChannelMode

src/Platform/Platform.cpp:2118–2125  ·  view source on GitHub ↗

Return the mode of this serial channel (raw, panelDue, device, disabled)

Source from the content-addressed store, hash-verified

2116
2117// Return the mode of this serial channel (raw, panelDue, device, disabled)
2118AuxMode 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
2127GCodeResult Platform::HandleM575(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException)
2128{

Callers

nothing calls this directly

Calls 1

GetModeMethod · 0.45

Tested by

no test coverage detected