MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / any_serial_data_available

Function any_serial_data_available

Marlin/src/gcode/queue.cpp:292–297  ·  view source on GitHub ↗

Multiserial already handles dispatch to/from multiple ports

Source from the content-addressed store, hash-verified

290#if NO_TIMEOUTS > 0
291 // Multiserial already handles dispatch to/from multiple ports
292 static bool any_serial_data_available() {
293 for (uint8_t p = 0; p < NUM_SERIAL; ++p)
294 if (serial_data_available(p))
295 return true;
296 return false;
297 }
298#endif
299
300inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }

Callers 1

get_serial_commandsMethod · 0.85

Calls 1

serial_data_availableFunction · 0.85

Tested by

no test coverage detected