Skip to content

Commit 046b72c

Browse files
committed
Updated to use new method for registering single run tasks.
1 parent bad00e4 commit 046b72c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

thc.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Part of grblHAL
66
7-
Copyright (c) 2020-2023 Terje Io
7+
Copyright (c) 2020-2024 Terje Io
88
99
Grbl is free software: you can redistribute it and/or modify
1010
it under the terms of the GNU General Public License as published by
@@ -583,11 +583,6 @@ static void plasma_settings_restore (void)
583583
hal.nvs.memcpy_to_nvs(nvs_address, (uint8_t *)&plasma, sizeof(plasma_settings_t), true);
584584
}
585585

586-
static void plasma_warning (uint_fast16_t state)
587-
{
588-
report_message("Plasma mode failed to initialize!", Message_Warning);
589-
}
590-
591586
static void plasma_settings_load (void)
592587
{
593588
bool ok = true;
@@ -634,7 +629,7 @@ static void plasma_settings_load (void)
634629

635630
} else {
636631
n_ain = n_din = 0;
637-
protocol_enqueue_rt_command(plasma_warning);
632+
protocol_enqueue_foreground_task(report_warning, "Plasma mode failed to initialize!");
638633
}
639634
}
640635

@@ -697,7 +692,7 @@ static void plasma_report_options (bool newopt)
697692
on_report_options(newopt);
698693

699694
if(!newopt)
700-
hal.stream.write("[PLUGIN:PLASMA v0.11]" ASCII_EOL);
695+
hal.stream.write("[PLUGIN:PLASMA v0.12]" ASCII_EOL);
701696
else if(driver_reset) // non-null when successfully enabled
702697
hal.stream.write(",THC");
703698
}
@@ -762,7 +757,7 @@ void plasma_init (void)
762757
setting_remove_elements(Setting_THC_Mode, 0b011);
763758

764759
} else
765-
protocol_enqueue_rt_command(plasma_warning);
760+
protocol_enqueue_foreground_task(report_warning, "Plasma mode failed to initialize!");
766761
}
767762

768763
#endif

0 commit comments

Comments
 (0)