Browse Source

Followup to Laser Flow Meter (#21498)

vanilla_fb_2.0.x
Mike La Spina 4 years ago
committed by GitHub
parent
commit
235ba92602
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      Marlin/src/lcd/HD44780/marlinui_HD44780.cpp
  2. 6
      Marlin/src/lcd/dogm/dogm_Statusscreen.h
  3. 2
      Marlin/src/lcd/dogm/status/cooler.h
  4. 2
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp
  5. 2
      Marlin/src/lcd/menu/menu_temperature.cpp
  6. 4
      Marlin/src/module/temperature.cpp

6
Marlin/src/lcd/HD44780/marlinui_HD44780.cpp

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

6
Marlin/src/lcd/dogm/dogm_Statusscreen.h

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

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

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

2
Marlin/src/lcd/dogm/status_screen_DOGM.cpp

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

2
Marlin/src/lcd/menu/menu_temperature.cpp

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

4
Marlin/src/module/temperature.cpp

@ -35,7 +35,7 @@
#include "endstops.h" #include "endstops.h"
#include "planner.h" #include "planner.h"
#if HAS_COOLER || HAS_FLOWMETER #if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
#include "../feature/cooler.h" #include "../feature/cooler.h"
#include "../feature/spindle_laser.h" #include "../feature/spindle_laser.h"
#endif #endif
@ -1549,7 +1549,7 @@ void Temperature::manage_heater() {
#endif // HAS_COOLER #endif // HAS_COOLER
#if HAS_FLOWMETER #if ENABLED(LASER_COOLANT_FLOW_METER)
cooler.flowmeter_task(ms); cooler.flowmeter_task(ms);
#if ENABLED(FLOWMETER_SAFETY) #if ENABLED(FLOWMETER_SAFETY)
if (cutter.enabled() && cooler.check_flow_too_low()) { if (cutter.enabled() && cooler.check_flow_too_low()) {

Loading…
Cancel
Save