Skip to content

Commit

Permalink
🐛 TM3D fixes and improvements
Browse files Browse the repository at this point in the history
Co-Authored-By: InsanityAutomation <[email protected]>
  • Loading branch information
thinkyhead and InsanityAutomation committed Jul 17, 2021
1 parent dd8ac68 commit bc459a7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Marlin/src/core/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extern uint8_t marlin_debug_flags;
// Serial redirection
//
// Step 1: Find out what the first serial leaf is
#if BOTH(HAS_MULTI_SERIAL, SERIAL_CATCHALL)
#if HAS_MULTI_SERIAL && defined(SERIAL_CATCHALL)
#define _SERIAL_LEAF_1 MYSERIAL
#else
#define _SERIAL_LEAF_1 MYSERIAL1
Expand Down
16 changes: 9 additions & 7 deletions Marlin/src/lcd/dwin/e3v2/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2417,13 +2417,15 @@ void Draw_HomeOff_Menu() {
#include "../../../libs/buzzer.h"

void HMI_AudioFeedback(const bool success=true) {
if (success) {
buzzer.tone(100, 659);
buzzer.tone(10, 0);
buzzer.tone(100, 698);
}
else
buzzer.tone(40, 440);
#if HAS_BUZZER
if (success) {
buzzer.tone(100, 659);
buzzer.tone(10, 0);
buzzer.tone(100, 698);
}
else
buzzer.tone(40, 440);
#endif
}

/* Prepare */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include "../config.h"
#include "../screens.h"

#ifdef COCOA_LEVELING_MENU
#if ENABLED(COCOA_LEVELING_MENU)

#if BOTH(HAS_BED_PROBE,BLTOUCH)
#if BOTH(HAS_BED_PROBE, BLTOUCH)
#include "../../../../feature/bltouch.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ namespace ExtUI {
return isPrinting() && (isPrintingFromMediaPaused() || print_job_timer.isPaused());
}

bool isMediaInserted() { return TERN0(SDSUPPORT, IS_SD_INSERTED() && card.isMounted()); }
bool isMediaInserted() { return TERN0(SDSUPPORT, IS_SD_INSERTED()); }

void pausePrint() { ui.pause_print(); }
void resumePrint() { ui.resume_print(); }
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@

#define BEEPER_PIN EXP1_10_PIN
#define BTN_ENC EXP1_09_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#endif

#ifndef KILL_PIN
#define KILL_PIN EXP2_03_PIN
Expand Down
7 changes: 6 additions & 1 deletion Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,13 @@
//
// Misc. Functions
//
#define LED_CONTROL_PIN PA13
#define CASE_LIGHT_PIN PA13

#ifndef NEOPIXEL_PIN
#define NEOPIXEL_PIN PA8
#endif

#define SUICIDE_PIN PC13
#ifndef SUICIDE_PIN_INVERTING
#define SUICIDE_PIN_INVERTING false
#endif

0 comments on commit bc459a7

Please sign in to comment.