Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#4159 from gudnimg/cleanup-gudni-com…
Browse files Browse the repository at this point in the history
…ments

Remove random `//-//` comments
  • Loading branch information
gudnimg authored Apr 22, 2023
2 parents e516d8a + ccabf1f commit 51da606
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 41 deletions.
1 change: 0 additions & 1 deletion Firmware/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)

//-//
#include <avr/pgmspace.h>
extern const uint16_t _nPrinterType;
extern const char _sPrinterName[] PROGMEM;
Expand Down
1 change: 0 additions & 1 deletion Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
*
*/

//-//
#include "Configuration.h"
#include "Marlin.h"
#include "config.h"
Expand Down
14 changes: 2 additions & 12 deletions Firmware/lcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <Arduino.h>
#include "Marlin.h"
#include "fastio.h"
//-//
#include "sound.h"
#include "backlight.h"

Expand Down Expand Up @@ -671,17 +670,8 @@ uint8_t lcd_clicked(void)
return clicked;
}

void lcd_beeper_quick_feedback(void)
{
//-//
Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
/*
for(int8_t i = 0; i < 10; i++)
{
Sound_MakeCustom(100,0,false);
_delay_us(100);
}
*/
void lcd_beeper_quick_feedback(void) {
Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
}

void lcd_quick_feedback(void)
Expand Down
21 changes: 1 addition & 20 deletions Firmware/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -944,17 +944,6 @@ static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, fl
__preheat_counter[_heater_id]++;
if (__preheat_counter[_heater_id] > ((_isbed) ? 16 : 8)) // periodicaly check if current temperature changes
{
/*SERIAL_ECHOPGM("Heater:");
MYSERIAL.print(_heater_id);
SERIAL_ECHOPGM(" T:");
MYSERIAL.print(_current_temperature);
SERIAL_ECHOPGM(" Tstart:");
MYSERIAL.print(__preheat_start[_heater_id]);
SERIAL_ECHOPGM(" delta:");
MYSERIAL.print(_current_temperature-__preheat_start[_heater_id]);*/

//-// if (_current_temperature - __preheat_start[_heater_id] < 2) {
//-// if (_current_temperature - __preheat_start[_heater_id] < ((_isbed && (_current_temperature>105.0))?0.6:2.0)) {
__delta=2.0;
if(_isbed)
{
Expand All @@ -964,11 +953,7 @@ static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, fl
}
if (_current_temperature - __preheat_start[_heater_id] < __delta) {
__preheat_errors[_heater_id]++;
/*SERIAL_ECHOPGM(" Preheat errors:");
MYSERIAL.println(__preheat_errors[_heater_id]);*/
}
else {
//SERIAL_ECHOLNPGM("");
} else {
__preheat_errors[_heater_id] = 0;
}

Expand All @@ -980,12 +965,8 @@ static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, fl
}
}

//-// if (_current_temperature >= _target_temperature && temp_runaway_status[_heater_id] == TempRunaway_PREHEAT)
if ((_current_temperature > (_target_temperature - __hysteresis)) && temp_runaway_status[_heater_id] == TempRunaway_PREHEAT)
{
/*SERIAL_ECHOPGM("Heater:");
MYSERIAL.print(_heater_id);
MYSERIAL.println(" ->tempRunaway");*/
temp_runaway_status[_heater_id] = TempRunaway_ACTIVE;
temp_runaway_check_active = false;
temp_runaway_error_counter[_heater_id] = 0;
Expand Down
7 changes: 2 additions & 5 deletions Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3366,10 +3366,8 @@ static void lcd_crash_mode_info2()
}
#endif //TMC2130

//-//
static void lcd_sound_state_set(void)
{
Sound_CycleState();
static void lcd_sound_state_set(void) {
Sound_CycleState();
}

#ifndef MMU_FORCE_STEALTH_MODE
Expand Down Expand Up @@ -4237,7 +4235,6 @@ do\
}\
while (0)

//-//
static void lcd_check_mode_set(void)
{
switch(oCheckMode)
Expand Down
2 changes: 0 additions & 2 deletions Firmware/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ bool show_upgrade_dialog_if_version_newer(const char *version_string);
bool eeprom_fw_version_older_than_p(const uint16_t (&req_ver)[4]);
void update_current_firmware_version_to_eeprom();


//-//
#define EEPROM_NOZZLE_DIAMETER_uM_DEFAULT 400

enum class ClPrintChecking:uint_least8_t
Expand Down

0 comments on commit 51da606

Please sign in to comment.