Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/MK3' into no-preheat-in-error
Browse files Browse the repository at this point in the history
  • Loading branch information
awenelo committed Sep 23, 2020
2 parents 3db242b + 134f841 commit 931ea7b
Show file tree
Hide file tree
Showing 59 changed files with 3,828 additions and 3,479 deletions.
4 changes: 2 additions & 2 deletions Firmware/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ extern uint16_t nPrinterType;
extern PGM_P sPrinterName;

// Firmware version
#define FW_VERSION "3.9.0"
#define FW_COMMIT_NR 3421
#define FW_VERSION "3.9.1"
#define FW_COMMIT_NR 3518
// FW_VERSION_UNKNOWN means this is an unofficial build.
// The firmware should only be checked into github with this symbol.
#define FW_DEV_VERSION FW_VERSION_UNKNOWN
Expand Down
15 changes: 15 additions & 0 deletions Firmware/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
#define FAN_KICKSTART_TIME 800

/**
* Auto-report temperatures with M155 S<seconds>
*/
#define AUTO_REPORT_TEMPERATURES




Expand Down Expand Up @@ -288,6 +293,7 @@
#define LA_K_DEF 0 // Default K factor (Unit: mm compression per 1mm/s extruder speed)
#define LA_K_MAX 10 // Maximum acceptable K factor (exclusive, see notes in planner.cpp:plan_buffer_line)
#define LA_LA10_MIN LA_K_MAX // Lin. Advance 1.0 threshold value (inclusive)
//#define LA_FLOWADJ // Adjust LA along with flow/M221 for uniform width
//#define LA_NOCOMPAT // Disable Linear Advance 1.0 compatibility
//#define LA_LIVE_K // Allow adjusting K in the Tune menu
//#define LA_DEBUG // If enabled, this will generate debug information output over USB.
Expand Down Expand Up @@ -375,6 +381,11 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#endif
#endif

/**
* Include capabilities in M115 output
*/
#define EXTENDED_CAPABILITIES_REPORT

//===========================================================================
//============================= Define Defines ============================
//===========================================================================
Expand Down Expand Up @@ -436,6 +447,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#undef BED_MINTEMP
#undef BED_MAXTEMP
#endif
#if TEMP_SENSOR_AMBIENT == 0
#undef AMBIENT_MINTEMP
#undef AMBIENT_MAXTEMP
#endif


#endif //__CONFIGURATION_ADV_H
15 changes: 5 additions & 10 deletions Firmware/Dcodes.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "Dcodes.h"
//#include "Marlin.h"
#include "Marlin.h"
#include "Configuration.h"
#include "language.h"
#include "cmdqueue.h"
Expand Down Expand Up @@ -226,9 +226,7 @@ void dcode_0()
LOG("D0 - Reset\n");
if (code_seen('B')) //bootloader
{
cli();
wdt_enable(WDTO_15MS);
while(1);
softReset();
}
else //reset
{
Expand All @@ -252,8 +250,7 @@ void dcode_1()
cli();
for (int i = 0; i < 8192; i++)
eeprom_write_byte((unsigned char*)i, (unsigned char)0xff);
wdt_enable(WDTO_15MS);
while(1);
softReset();
}

/*!
Expand Down Expand Up @@ -420,8 +417,7 @@ void dcode_5()
boot_dst_addr = (uint32_t)address;
boot_src_addr = (uint32_t)(&data);
bootapp_print_vars();
wdt_enable(WDTO_15MS);
while(1);
softReset();
}
while (count)
{
Expand Down Expand Up @@ -467,8 +463,7 @@ void dcode_7()
boot_copy_size = (uint16_t)0xc00;
boot_src_addr = (uint32_t)0x0003e400;
boot_dst_addr = (uint32_t)0x0003f400;
wdt_enable(WDTO_15MS);
while(1);
softReset();
*/
}

Expand Down
11 changes: 4 additions & 7 deletions Firmware/Marlin.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef MARLIN_H
#define MARLIN_H

#define FORCE_INLINE __attribute__((always_inline)) inline
#include "macros.h"

#include <math.h>
#include <stdio.h>
Expand Down Expand Up @@ -287,19 +287,14 @@ FORCE_INLINE unsigned long millis_nc() {
void setPwmFrequency(uint8_t pin, int val);
#endif

#ifndef CRITICAL_SECTION_START
#define CRITICAL_SECTION_START unsigned char _sreg = SREG; cli();
#define CRITICAL_SECTION_END SREG = _sreg;
#endif //CRITICAL_SECTION_START

extern bool fans_check_enabled;
extern float homing_feedrate[];
extern uint8_t axis_relative_modes;
extern float feedrate;
extern int feedmultiply;
extern int extrudemultiply; // Sets extrude multiply factor (in percent) for all extruders
extern int extruder_multiply[EXTRUDERS]; // sets extrude multiply factor (in percent) for each extruder individually
extern float volumetric_multiplier[EXTRUDERS]; // reciprocal of cross-sectional area of filament (in square millimeters), stored this way to reduce computational burden in planner
extern float extruder_multiplier[EXTRUDERS]; // reciprocal of cross-sectional area of filament (in square millimeters), stored this way to reduce computational burden in planner
extern float current_position[NUM_AXIS] ;
extern float destination[NUM_AXIS] ;
extern float min_pos[3];
Expand Down Expand Up @@ -512,4 +507,6 @@ void load_filament_final_feed();
void marlin_wait_for_click();
void raise_z_above(float target, bool plan=true);

extern "C" void softReset();

#endif
Loading

0 comments on commit 931ea7b

Please sign in to comment.