|
|
|
@ -107,22 +107,24 @@ void GcodeSuite::M26() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* M27: Get SD Card status
|
|
|
|
|
* M27: Get SD Card status or set the SD status auto-report interval.
|
|
|
|
|
*/
|
|
|
|
|
void GcodeSuite::M27() {
|
|
|
|
|
card.getStatus(
|
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
command_queue_port[cmd_queue_index_r]
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
|
|
|
|
if (parser.seenval('S'))
|
|
|
|
|
card.set_auto_report_interval(parser.value_byte()
|
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
, command_queue_port[cmd_queue_index_r]
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
if (parser.seenval('S')) {
|
|
|
|
|
card.set_auto_report_interval(parser.value_byte()
|
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
, command_queue_port[cmd_queue_index_r]
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
#endif
|
|
|
|
|
card.getStatus(
|
|
|
|
|
#if NUM_SERIAL > 1
|
|
|
|
|
command_queue_port[cmd_queue_index_r]
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|