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

Method M123

Marlin/src/gcode/temp/M123.cpp:35–46  ·  view source on GitHub ↗

* M123: Report fan states -or- set interval for auto-report * * S : Set auto-report interval */

Source from the content-addressed store, hash-verified

33 * S<seconds> : Set auto-report interval
34 */
35void GcodeSuite::M123() {
36
37 #if ENABLED(AUTO_REPORT_FANS)
38 if (parser.seenval('S')) {
39 fan_check.auto_reporter.set_interval(parser.value_byte());
40 return;
41 }
42 #endif
43
44 fan_check.print_fan_states();
45
46}
47
48#endif // HAS_FANCHECK

Callers

nothing calls this directly

Calls 4

seenvalMethod · 0.80
set_intervalMethod · 0.80
value_byteMethod · 0.80
print_fan_statesMethod · 0.80

Tested by

no test coverage detected