Skip to content

Commit 235ba92

Browse files
authored
Followup to Laser Flow Meter (#21498)
1 parent 6747d35 commit 235ba92

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

Marlin/src/lcd/HD44780/marlinui_HD44780.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include "../../gcode/parser.h"
4747
#endif
4848

49-
#if HAS_COOLER || HAS_FLOWMETER
49+
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
5050
#include "../../feature/cooler.h"
5151
#endif
5252

@@ -584,7 +584,7 @@ FORCE_INLINE void _draw_cooler_status(const char prefix, const bool blink) {
584584
}
585585
#endif
586586

587-
#if HAS_FLOWMETER
587+
#if ENABLED(LASER_COOLANT_FLOW_METER)
588588
FORCE_INLINE void _draw_flowmeter_status() {
589589
lcd_put_u8str("~ ");
590590
lcd_put_u8str(ftostr11ns(cooler.flowrate));
@@ -827,7 +827,7 @@ void MarlinUI::draw_status_screen() {
827827
#if HAS_COOLER
828828
_draw_cooler_status('*', blink);
829829
#endif
830-
#if HAS_FLOWMETER
830+
#if ENABLED(LASER_COOLANT_FLOW_METER)
831831
_draw_flowmeter_status();
832832
#endif
833833

Marlin/src/lcd/dogm/dogm_Statusscreen.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
//
9898
// Laser Flowmeter
9999
//
100-
#if !STATUS_FLOWMETER_WIDTH && HAS_FLOWMETER
100+
#if !STATUS_FLOWMETER_WIDTH && ENABLED(LASER_COOLANT_FLOW_METER)
101101
#include "status/cooler.h"
102102
#endif
103103
#ifndef STATUS_FLOWMETER_WIDTH
@@ -567,7 +567,7 @@
567567
//
568568
// Flowmeter Bitmap Properties
569569
//
570-
#if HAS_FLOWMETER
570+
#if ENABLED(LASER_COOLANT_FLOW_METER)
571571
#if STATUS_FLOWMETER_WIDTH
572572

573573
#ifndef STATUS_FLOWMETER_X
@@ -689,7 +689,7 @@
689689
#if HAS_COOLER
690690
#define DO_DRAW_COOLER 1
691691
#endif
692-
#if HAS_FLOWMETER
692+
#if ENABLED(LASER_COOLANT_FLOW_METER)
693693
#define DO_DRAW_FLOWMETER 1
694694
#endif
695695

Marlin/src/lcd/dogm/status/cooler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
};
6565
#endif
6666

67-
#if HAS_FLOWMETER
67+
#if ENABLED(LASER_COOLANT_FLOW_METER)
6868
#define STATUS_FLOWMETER_WIDTH 24
6969
const unsigned char status_flowmeter_bmp2[] PROGMEM = {
7070
B00000001,B11111000,B00000000,

Marlin/src/lcd/dogm/status_screen_DOGM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#include "../../feature/spindle_laser.h"
5454
#endif
5555

56-
#if HAS_COOLER || HAS_FLOWMETER
56+
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
5757
#include "../../feature/cooler.h"
5858
#endif
5959

Marlin/src/lcd/menu/menu_temperature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "../../module/motion.h"
3636
#endif
3737

38-
#if HAS_COOLER || HAS_FLOWMETER
38+
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
3939
#include "../../feature/cooler.h"
4040
#endif
4141

Marlin/src/module/temperature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "endstops.h"
3636
#include "planner.h"
3737

38-
#if HAS_COOLER || HAS_FLOWMETER
38+
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
3939
#include "../feature/cooler.h"
4040
#include "../feature/spindle_laser.h"
4141
#endif
@@ -1549,7 +1549,7 @@ void Temperature::manage_heater() {
15491549

15501550
#endif // HAS_COOLER
15511551

1552-
#if HAS_FLOWMETER
1552+
#if ENABLED(LASER_COOLANT_FLOW_METER)
15531553
cooler.flowmeter_task(ms);
15541554
#if ENABLED(FLOWMETER_SAFETY)
15551555
if (cutter.enabled() && cooler.check_flow_too_low()) {

0 commit comments

Comments
 (0)