Skip to content

Commit

Permalink
Revert "General cleanup"
Browse files Browse the repository at this point in the history
This reverts commit 66d401b.
  • Loading branch information
ahmetcemturan committed Jan 23, 2021
1 parent 89195d2 commit 26991c0
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
Empty file.
2 changes: 1 addition & 1 deletion Marlin/src/feature/spindle_laser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void SpindleLaser::init() {
analogWrite(pin_t(SPINDLE_LASER_PWM_PIN), ocr ^ SPINDLE_LASER_PWM_OFF);
#if NEEDS_HARDWARE_PWM && SPINDLE_LASER_FREQUENCY
set_pwm_duty(pin_t(SPINDLE_LASER_PWM_PIN), ocr ^ SPINDLE_LASER_PWM_OFF);
#endif
#endif
}
void SpindleLaser::ocr_off() {
WRITE(SPINDLE_LASER_ENA_PIN, !SPINDLE_LASER_ACTIVE_HIGH); // Turn spindle off
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
#if ENABLED(TOUCH_SCREEN_CALIBRATION)
case 995: M995(); break; // M995: Touch screen calibration for TFT display
#endif

#if ENABLED(PLATFORM_M997_SUPPORT)
case 997: M997(); break; // M997: Perform in-application firmware update
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/inc/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,7 @@
*/
#if PIN_EXISTS(BEEPER) || EITHER(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
#define HAS_BUZZER 1
#if NONE(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
#if DISABLED(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
#define USE_BEEPER 1
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void menu_motion() {
#if ENABLED(ASSISTED_TRAMMING)
GCODES_ITEM(MSG_ASSISTED_TRAMMING, PSTR("G35"));
#endif

//
// Level Bed
//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_tmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "../../inc/MarlinConfigPre.h"

#if HAS_LCD_MENU && HAS_TRINAMIC_CONFIG
#if HAS_TRINAMIC_CONFIG && HAS_LCD_MENU

#include "menu.h"
#include "../../module/stepper/indirection.h"
Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/lcd/menu/menu_touch_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@

#include "../../inc/MarlinConfigPre.h"

#if BOTH(HAS_LCD_MENU, TOUCH_SCREEN_CALIBRATION)
#if ENABLED(TOUCH_SCREEN_CALIBRATION)

#include "menu.h"
#include "../ultralcd.h"

void touch_screen_calibration() {

ui.touch_calibration();

}

#endif // TOUCH_SCREEN_CALIBRATION
2 changes: 1 addition & 1 deletion Marlin/src/lcd/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
#endif
#endif

#if EITHER(PCA9632_BUZZER, USE_BEEPER)
#if ENABLED(PCA9632_BUZZER) || USE_BEEPER
#include "../libs/buzzer.h" // for BUZZ() macro
#if ENABLED(PCA9632_BUZZER)
#include "../feature/leds/pca9632.h"
Expand Down

0 comments on commit 26991c0

Please sign in to comment.