|
4 | 4 |
|
5 | 5 | Part of grblHAL |
6 | 6 |
|
7 | | - Copyright (c) 2020-2023 Terje Io |
| 7 | + Copyright (c) 2020-2024 Terje Io |
8 | 8 |
|
9 | 9 | Grbl is free software: you can redistribute it and/or modify |
10 | 10 | it under the terms of the GNU General Public License as published by |
@@ -583,11 +583,6 @@ static void plasma_settings_restore (void) |
583 | 583 | hal.nvs.memcpy_to_nvs(nvs_address, (uint8_t *)&plasma, sizeof(plasma_settings_t), true); |
584 | 584 | } |
585 | 585 |
|
586 | | -static void plasma_warning (uint_fast16_t state) |
587 | | -{ |
588 | | - report_message("Plasma mode failed to initialize!", Message_Warning); |
589 | | -} |
590 | | - |
591 | 586 | static void plasma_settings_load (void) |
592 | 587 | { |
593 | 588 | bool ok = true; |
@@ -634,7 +629,7 @@ static void plasma_settings_load (void) |
634 | 629 |
|
635 | 630 | } else { |
636 | 631 | n_ain = n_din = 0; |
637 | | - protocol_enqueue_rt_command(plasma_warning); |
| 632 | + protocol_enqueue_foreground_task(report_warning, "Plasma mode failed to initialize!"); |
638 | 633 | } |
639 | 634 | } |
640 | 635 |
|
@@ -697,7 +692,7 @@ static void plasma_report_options (bool newopt) |
697 | 692 | on_report_options(newopt); |
698 | 693 |
|
699 | 694 | if(!newopt) |
700 | | - hal.stream.write("[PLUGIN:PLASMA v0.11]" ASCII_EOL); |
| 695 | + hal.stream.write("[PLUGIN:PLASMA v0.12]" ASCII_EOL); |
701 | 696 | else if(driver_reset) // non-null when successfully enabled |
702 | 697 | hal.stream.write(",THC"); |
703 | 698 | } |
@@ -762,7 +757,7 @@ void plasma_init (void) |
762 | 757 | setting_remove_elements(Setting_THC_Mode, 0b011); |
763 | 758 |
|
764 | 759 | } else |
765 | | - protocol_enqueue_rt_command(plasma_warning); |
| 760 | + protocol_enqueue_foreground_task(report_warning, "Plasma mode failed to initialize!"); |
766 | 761 | } |
767 | 762 |
|
768 | 763 | #endif |
0 commit comments