General cleanups for HAL
This commit is contained in:
@ -31,7 +31,7 @@
|
||||
* M122: Debug TMC drivers
|
||||
*/
|
||||
void GcodeSuite::M122() {
|
||||
if (parser.seen('S'))
|
||||
if (parser.seen('S'))
|
||||
tmc_set_report_status(parser.value_bool());
|
||||
else
|
||||
tmc_report_all();
|
||||
|
@ -254,7 +254,7 @@ static bool serial_data_available() {
|
||||
static int read_serial(const int index) {
|
||||
switch (index) {
|
||||
case 0: return MYSERIAL0.read();
|
||||
#if NUM_SERIAL > 1
|
||||
#if NUM_SERIAL > 1
|
||||
case 1: return MYSERIAL1.read();
|
||||
#endif
|
||||
default: return -1;
|
||||
|
@ -109,7 +109,7 @@ void GcodeSuite::M26() {
|
||||
/**
|
||||
* M27: Get SD Card status
|
||||
*/
|
||||
void GcodeSuite::M27() {
|
||||
void GcodeSuite::M27() {
|
||||
card.getStatus(
|
||||
#if NUM_SERIAL > 1
|
||||
command_queue_port[cmd_queue_index_r]
|
||||
|
Reference in New Issue
Block a user