Skip to content

Commit

Permalink
Merge branch 'master' of github.com:marciot/drunken-octopus-marlin
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot committed Apr 13, 2020
2 parents f4bcc03 + 98d592f commit 0aa81b1
Show file tree
Hide file tree
Showing 23 changed files with 115 additions and 152 deletions.
11 changes: 3 additions & 8 deletions Marlin/src/HAL/LPC1768/eeprom_sdcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,16 @@ static void debug_rw(const bool write, int &pos, const uint8_t *value, const siz
PGM_P const rw_str = write ? PSTR("write") : PSTR("read");
SERIAL_CHAR(' ');
serialprintPGM(rw_str);
SERIAL_ECHOPAIR("_data(", pos);
SERIAL_ECHOPAIR(",", (int)value);
SERIAL_ECHOPAIR(",", (int)size);
SERIAL_ECHOLNPGM(", ...)");
SERIAL_ECHOLNPAIR("_data(", pos, ",", int(value), ",", int(size), ", ...)");
if (total) {
SERIAL_ECHOPGM(" f_");
serialprintPGM(rw_str);
SERIAL_ECHOPAIR("()=", (int)s);
SERIAL_ECHOPAIR("\n size=", size);
SERIAL_ECHOPGM("\n bytes_");
SERIAL_ECHOPAIR("()=", int(s), "\n size=", int(size), "\n bytes_");
serialprintPGM(write ? PSTR("written=") : PSTR("read="));
SERIAL_ECHOLN(total);
}
else
SERIAL_ECHOLNPAIR(" f_lseek()=", (int)s);
SERIAL_ECHOLNPAIR(" f_lseek()=", int(s));
}

// File function return codes for type FRESULT. This goes away soon, but
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@
SERIAL_ECHO(g29_pos.y);
SERIAL_ECHOLNPGM(").\n");
}
const xy_pos_t near = g29_pos + probe.offset_xy;
probe_entire_mesh(near, parser.seen('T'), parser.seen('E'), parser.seen('U'));
const xy_pos_t near_probe_xy = g29_pos + probe.offset_xy;
probe_entire_mesh(near_probe_xy, parser.seen('T'), parser.seen('E'), parser.seen('U'));

report_current_position();
probe_deployed = true;
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/lcd/language/language_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ namespace Language_en {
PROGMEM Language_Str MSG_ERR_EEPROM_CRC = _UxGT("Err: EEPROM CRC");
PROGMEM Language_Str MSG_ERR_EEPROM_INDEX = _UxGT("Err: EEPROM Index");
PROGMEM Language_Str MSG_ERR_EEPROM_VERSION = _UxGT("Err: EEPROM Version");
PROGMEM Language_Str MSG_SETTINGS_STORED = _UxGT("Settings Stored");
PROGMEM Language_Str MSG_MEDIA_UPDATE = _UxGT("Media Update");
PROGMEM Language_Str MSG_RESET_PRINTER = _UxGT("Reset Printer");
PROGMEM Language_Str MSG_REFRESH = LCD_STR_REFRESH _UxGT("Refresh");
Expand Down
106 changes: 80 additions & 26 deletions Marlin/src/lcd/language/language_es.h

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Marlin/src/module/configuration_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,8 @@ void MarlinSettings::postprocess() {
store_mesh(ubl.storage_slot);
#endif

if (!eeprom_error) LCD_MESSAGEPGM(MSG_SETTINGS_STORED);

#if ENABLED(EXTENSIBLE_UI)
ExtUI::onConfigurationStoreWritten(!eeprom_error);
#endif
Expand Down
4 changes: 2 additions & 2 deletions build-firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ get_config_info() {
fw_filename=Marlin_${printer}_${toolhead}_${fw_version}_${fw_hash}
motherboard_name=`grep "define MOTHERBOARD" $config/Configuration.h | awk '{print $3}'`
motherboard_number=`grep "$motherboard_name\b" Marlin/src/core/boards.h | awk '{print $3}'`
is_lulzbot=`grep "LulzBot printers" $config/Configuration.h`
is_drunken_octopus=`grep "Drunken Octopus" $config/Configuration.h`
if [ ! $FULLNAMES ]; then
# Shorten firmware name (removing the code names)
fw_filename=`echo $fw_filename | sed 's/Marlin_(.+)_(.+)_(.+)_(.+)_(.+)_(.+)/Marlin_$2_$4_$5_$6/'`
Expand Down Expand Up @@ -170,7 +170,7 @@ build_firmware() {
return
fi

if [ -z "$is_lulzbot" ]; then
if [ -z "$is_drunken_octopus" ]; then
# Bail if the FW is not an official Lulzbot build
echo Skipping $config because it does not appear compatible with this script.
return
Expand Down
2 changes: 1 addition & 1 deletion config/default/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
//#define SOURCE_CODE_URL
//#define TOOLHEAD_NAME
Expand Down
15 changes: 2 additions & 13 deletions config/default/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
//#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "Single Extruder" // <-- changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
#define USE_CONTROLLER_FAN // <-- changed
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "SE 0.5mm AeroV2" // <-- changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
#define USE_CONTROLLER_FAN // <-- changed
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "Single Extruder" // <-- changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
#define USE_CONTROLLER_FAN // <-- changed
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "Goostruder" // <-- changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
#define USE_CONTROLLER_FAN // <-- changed
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "Single Extruder" // <-- changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
*
* The fan turns on automatically whenever any driver is enabled and turns
* off (or reduces to idle speed) shortly after drivers are turned off.
*
*/
#define USE_CONTROLLER_FAN // <-- changed
#if ENABLED(USE_CONTROLLER_FAN)
Expand Down Expand Up @@ -1060,9 +1059,6 @@
* during SD printing. If the recovery file is found at boot time, present
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*
* If the machine reboots when resuming a print you may need to replace or
* reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
*/
//#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
Expand Down Expand Up @@ -1600,18 +1596,11 @@
// Add additional compensation depending on hotend temperature
// Note: this values cannot be calibrated and have to be set manually
#if ENABLED(PROBE_TEMP_COMPENSATION)
// Max temperature that can be reached by heated bed.
// This is required only for the calibration process.
#define PTC_MAX_BED_TEMP BED_MAXTEMP

// Park position to wait for probe cooldown
#define PTC_PARK_POS_X 0.0F
#define PTC_PARK_POS_Y 0.0F
#define PTC_PARK_POS_Z 100.0F
#define PTC_PARK_POS { 0, 0, 100 }

// Probe position to probe and wait for probe to reach target temperature
#define PTC_PROBE_POS_X 90.0F
#define PTC_PROBE_POS_Y 100.0F
#define PTC_PROBE_POS { 90, 100 }

// Enable additional compensation using hotend temperature
// Note: this values cannot be calibrated automatically but have to be set manually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@
//#define EDITABLE_SERVO_ANGLES

/**
* Extra modifications to Marlin for LulzBot printers
* Extra parameters used by Drunken Octopus
*/
#define SOURCE_CODE_URL "https://github.com/marciot/drunken-octopus-marlin" // <-- changed
#define TOOLHEAD_NAME "Quivering Aeros" // <-- changed
Expand Down
Loading

0 comments on commit 0aa81b1

Please sign in to comment.