line endings + fixed declaration

This commit is contained in:
Robert Pelnar 2018-08-08 20:11:57 +02:00
parent 990a5c9119
commit 310751397c
4 changed files with 12 additions and 8 deletions

View File

@ -359,9 +359,9 @@ extern bool mmu_print_saved;
//estimated time to end of the print //estimated time to end of the print
extern uint8_t print_percent_done_normal; extern uint8_t print_percent_done_normal;
extern uint16_t print_time_remaining_normal; extern uint32_t print_time_remaining_normal;
extern uint8_t print_percent_done_silent; extern uint8_t print_percent_done_silent;
extern uint16_t print_time_remaining_silent; extern uint32_t print_time_remaining_silent;
#define PRINT_TIME_REMAINING_INIT 0xffffffff #define PRINT_TIME_REMAINING_INIT 0xffffffff
#define PRINT_PERCENT_DONE_INIT 0xff #define PRINT_PERCENT_DONE_INIT 0xff
#define PRINTER_ACTIVE (IS_SD_PRINTING || is_usb_printing || isPrintPaused || (custom_message_type == 4) || saved_printing || (lcd_commands_type == LCD_COMMAND_V2_CAL) || card.paused || mmu_print_saved) #define PRINTER_ACTIVE (IS_SD_PRINTING || is_usb_printing || isPrintPaused || (custom_message_type == 4) || saved_printing || (lcd_commands_type == LCD_COMMAND_V2_CAL) || card.paused || mmu_print_saved)

View File

@ -336,8 +336,8 @@ float pause_lastpos[4];
unsigned long pause_time = 0; unsigned long pause_time = 0;
unsigned long start_pause_print = millis(); unsigned long start_pause_print = millis();
unsigned long t_fan_rising_edge = millis(); unsigned long t_fan_rising_edge = millis();
static LongTimer safetyTimer; LongTimer safetyTimer;
static LongTimer crashDetTimer; LongTimer crashDetTimer;
//unsigned long load_filament_time; //unsigned long load_filament_time;

View File

@ -755,6 +755,7 @@ void lcd_update_enable(uint8_t enabled)
} }
} }
extern LongTimer safetyTimer;
void lcd_buttons_update(void) void lcd_buttons_update(void)
{ {
static bool _lock = false; static bool _lock = false;

View File

@ -34,6 +34,8 @@ int8_t mmu_finda = -1;
int16_t mmu_version = -1; int16_t mmu_version = -1;
int16_t mmu_build = -1;
//clear rx buffer //clear rx buffer
void mmu_clr_rx_buf(void) void mmu_clr_rx_buf(void)
@ -100,6 +102,7 @@ bool mmu_reset(void)
while ((mmu_rx_start() <= 0) && (--timeout)) while ((mmu_rx_start() <= 0) && (--timeout))
delay_keep_alive(MMU_TODELAY); delay_keep_alive(MMU_TODELAY);
mmu_enabled = timeout?true:false; mmu_enabled = timeout?true:false;
mmu_enabled = true;
return mmu_enabled; return mmu_enabled;
} }