Followup to Laser Flow Meter (#21498)

This commit is contained in:
Mike La Spina
2021-04-01 19:29:49 -05:00
committed by GitHub
parent 6747d350a5
commit 235ba92602
6 changed files with 11 additions and 11 deletions

View File

@ -46,7 +46,7 @@
#include "../../gcode/parser.h"
#endif
#if HAS_COOLER || HAS_FLOWMETER
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
#include "../../feature/cooler.h"
#endif
@ -584,7 +584,7 @@ FORCE_INLINE void _draw_cooler_status(const char prefix, const bool blink) {
}
#endif
#if HAS_FLOWMETER
#if ENABLED(LASER_COOLANT_FLOW_METER)
FORCE_INLINE void _draw_flowmeter_status() {
lcd_put_u8str("~ ");
lcd_put_u8str(ftostr11ns(cooler.flowrate));
@ -827,7 +827,7 @@ void MarlinUI::draw_status_screen() {
#if HAS_COOLER
_draw_cooler_status('*', blink);
#endif
#if HAS_FLOWMETER
#if ENABLED(LASER_COOLANT_FLOW_METER)
_draw_flowmeter_status();
#endif

View File

@ -97,7 +97,7 @@
//
// Laser Flowmeter
//
#if !STATUS_FLOWMETER_WIDTH && HAS_FLOWMETER
#if !STATUS_FLOWMETER_WIDTH && ENABLED(LASER_COOLANT_FLOW_METER)
#include "status/cooler.h"
#endif
#ifndef STATUS_FLOWMETER_WIDTH
@ -567,7 +567,7 @@
//
// Flowmeter Bitmap Properties
//
#if HAS_FLOWMETER
#if ENABLED(LASER_COOLANT_FLOW_METER)
#if STATUS_FLOWMETER_WIDTH
#ifndef STATUS_FLOWMETER_X
@ -689,7 +689,7 @@
#if HAS_COOLER
#define DO_DRAW_COOLER 1
#endif
#if HAS_FLOWMETER
#if ENABLED(LASER_COOLANT_FLOW_METER)
#define DO_DRAW_FLOWMETER 1
#endif

View File

@ -64,7 +64,7 @@
};
#endif
#if HAS_FLOWMETER
#if ENABLED(LASER_COOLANT_FLOW_METER)
#define STATUS_FLOWMETER_WIDTH 24
const unsigned char status_flowmeter_bmp2[] PROGMEM = {
B00000001,B11111000,B00000000,

View File

@ -53,7 +53,7 @@
#include "../../feature/spindle_laser.h"
#endif
#if HAS_COOLER || HAS_FLOWMETER
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
#include "../../feature/cooler.h"
#endif

View File

@ -35,7 +35,7 @@
#include "../../module/motion.h"
#endif
#if HAS_COOLER || HAS_FLOWMETER
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
#include "../../feature/cooler.h"
#endif