finda runout sensor can be turned on/off from menu

This commit is contained in:
PavelSindler 2018-08-27 05:20:42 +02:00
parent ceb49d1262
commit 03fffae4c3
4 changed files with 110 additions and 75 deletions
Firmware

View file

@ -198,7 +198,7 @@ void mmu_loop(void)
fscanf_P(uart2io, PSTR("%hhu"), &mmu_finda); //scan finda from buffer
printf_P(PSTR("MMU => '%dok'\n"), mmu_finda);
//printf_P(PSTR("Eact: %d\n"), int(e_active()));
if (!mmu_finda && CHECK_FINDA) {
if (!mmu_finda && CHECK_FINDA && fsensor_enabled) {
fsensor_stop_and_save_print();
enquecommand_front_P(PSTR("FSENSOR_RECOVER")); //then recover
enquecommand_front_P(PSTR("M600")); //save print and run M600 command