Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix 2.0.x update #1

Merged
merged 125 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
b6cd8b2
TMCStepper 0.7.0 followup (#18388)
sjasonsmith Jun 22, 2020
819e489
Improve U8G+SPI delay override (#18386)
sjasonsmith Jun 22, 2020
e52afa8
Better STM32 Tone timer int priority (#18385)
sjasonsmith Jun 22, 2020
3bfbd47
Fix 3-point middle point (#18383)
MoellerDi Jun 22, 2020
07966ea
Fix LPC176x RGB NEOPIXEL startup (#18380)
ellensp Jun 22, 2020
e65e2f3
Fix ExtUI automatic font scaling (#18377)
RudolphRiedel Jun 22, 2020
7434d40
[cron] Bump distribution date (2020-06-23)
thinkyhead Jun 23, 2020
1ea4e39
No 'probing failed' with retry (#18379)
o-nix Jun 22, 2020
25c7c43
Add SERIAL_FLOAT_PRECISION option (#18367)
Fabi0San Jun 23, 2020
2139141
Graphical LCD note
thinkyhead Jun 23, 2020
40fce56
Move tests up one level
thinkyhead Jun 22, 2020
a0bbdde
Use libraries from the registry
thinkyhead Jun 23, 2020
ea569ca
Update LPC176x platform version (#18392)
p3p Jun 23, 2020
d55a53f
Add maintenance actions
thinkyhead Jun 23, 2020
f011c69
[cron] Bump distribution date (2020-06-24)
thinkyhead Jun 24, 2020
2a9ad52
Run close-stale once per day
thinkyhead Jun 24, 2020
1fb2fff
General cleanup
thinkyhead Jun 23, 2020
c3d2ffc
Board-based ST7920 delays
thinkyhead Jun 24, 2020
2a650a2
TFT_LITTLE_VGL_UI followup (#18410)
rhapsodyv Jun 24, 2020
c135db1
Display PID Autotune status (#18408)
pmjdebruijn Jun 24, 2020
eb5f8b6
[cron] Bump distribution date (2020-06-25)
thinkyhead Jun 25, 2020
b0aad41
Use Preheat 1 as M303 default (#18407)
pmjdebruijn Jun 25, 2020
4275466
Fix issues with no hotend / bed / fan (#18395)
thinkyhead Jun 25, 2020
d0f2fde
Fix material preset type
thinkyhead Jun 25, 2020
43a994e
Fix material preset editing
thinkyhead Jun 25, 2020
859ccd2
NO_LCD_REINIT for FSMC (or, no SD_DETECT_PIN)
thinkyhead Apr 9, 2020
4ace981
Clean up preheat edit items
thinkyhead Jun 25, 2020
520c0ab
[cron] Bump distribution date (2020-06-26)
thinkyhead Jun 26, 2020
f445bc2
Minor LCD cleanup, improvement
thinkyhead Jun 25, 2020
452072c
Fix typo in DWIN, preheat array
thinkyhead Jun 26, 2020
834c265
Update Italian language (#18414)
GMagician Jun 26, 2020
aae5f72
[samd51] Manifest assigned timers priority (#18402)
GMagician Jun 26, 2020
c6a066c
Update MKS Robin Nano auto-build env (#18417)
thisiskeithb Jun 26, 2020
ce3fb61
SAMD51 cleanup (#18419)
GMagician Jun 26, 2020
2330ee4
BTT SKR Pro runout pins (#18416)
JohnnyTheOne Jun 26, 2020
9013580
Update Brazilian Portuguese language (#18411)
lucasoshiro Jun 26, 2020
5a96695
Fix Fan Speed menu items (#18400)
sjasonsmith Jun 26, 2020
319e93f
Patch some DGUS warnings
thinkyhead Jun 25, 2020
a907e15
Allow larger ADC debounce
thinkyhead Jun 26, 2020
8474050
[cron] Bump distribution date (2020-06-27)
thinkyhead Jun 27, 2020
ad1470b
[cron] Bump distribution date (2020-06-28)
thinkyhead Jun 28, 2020
e392745
Update language fonts
thinkyhead Jun 28, 2020
c1dcc56
Tool Change Migration fixes and debugging (#18448)
InsanityAutomation Jun 28, 2020
3b80690
ExtUI additions (#18447)
InsanityAutomation Jun 28, 2020
59e4de8
Add Romanian language (#18455)
thinkyhead Jun 28, 2020
31349fd
Fix "probing failed" false positives (#18435)
jpflouret Jun 28, 2020
29753ba
Adjustable delta_diagonal_rod_trim (#18423)
Fabi0San Jun 28, 2020
ed96b50
Russian, Ukranian for wide LCD (#18433)
Serhiy-K Jun 28, 2020
f4e1596
Tweak pins formatting
thinkyhead Jun 28, 2020
30ee0d3
Suppress unused var warning
thinkyhead Jun 28, 2020
48151d1
ClosedLoop as singleton
thinkyhead Jun 28, 2020
ca4ade4
[cron] Bump distribution date (2020-06-29)
thinkyhead Jun 29, 2020
69b5b91
MKS Robin Nano flash-based EEPROM (#18466)
thisiskeithb Jun 29, 2020
bfcf7ac
Use "reset reason" defines (#18462)
GMagician Jun 29, 2020
34b84d3
[cron] Bump distribution date (2020-06-30)
thinkyhead Jun 30, 2020
2d6c17b
[cron] Bump distribution date (2020-07-01)
thinkyhead Jul 1, 2020
21cc924
Fix missing parenthesis (#18473)
ellensp Jul 1, 2020
992dc14
Fix FYSETC CHEETAH V1.2 SD re-insert (#18474)
GerogeFu Jul 1, 2020
d7e0619
Hide menu item with no fan (#18470)
ellensp Jul 1, 2020
3910538
Permit independent X2,Y2,Z2,Z3,Z4 endstop inverting (#18481)
robbycandra Jul 1, 2020
e5bc9d3
Add TFT_LVGL_UI support (#18438)
rhapsodyv Jul 1, 2020
70fa4c9
Per-Hotend Default PIDs (#18483)
thinkyhead Jul 1, 2020
c43bbcc
Enforce sensor range for temperature target (#18465)
thinkyhead Jul 1, 2020
652c75c
[cron] Bump distribution date (2020-07-02)
thinkyhead Jul 2, 2020
e25da63
Tweak stepper shutdown test
thinkyhead Jul 2, 2020
7b6629c
Extend thermistor 1047 to 500°C
thinkyhead Jul 2, 2020
299d1fe
[cron] Bump distribution date (2020-07-03)
thinkyhead Jul 3, 2020
e401b0c
Keep filament runout pin for Creality Melzi (#18504)
InsanityAutomation Jul 3, 2020
097347b
Add FYSETC 2.42 inch OLED support (#18485)
GerogeFu Jul 3, 2020
2c15a78
Option to set manual Babystepping distance in mm (#18503)
cbteeple Jul 3, 2020
f6a2b64
Clean up LCD Manual Move / UBL Mesh Edit (#18373)
thinkyhead Jul 3, 2020
8c205c5
FYSETC OLED followup (#18519)
thisiskeithb Jul 3, 2020
90380d5
Ensure Git applies Unix line-endings in tests (#18495)
sjasonsmith Jul 3, 2020
7448b65
Fix axis name in serial output (#18522)
GMagician Jul 3, 2020
382c566
Fix env:mks_robin_nano35 (#18516)
thisiskeithb Jul 3, 2020
bb89e33
FIx Sanguino/1284p board_upload.maximum_size (#18502)
ellensp Jul 3, 2020
91dc74f
M150 I to set Neopixel by index (#18490)
ellensp Jul 3, 2020
3641972
[cron] Bump distribution date (2020-07-04)
thinkyhead Jul 4, 2020
7ca0a7d
PID Accelerated Edit (#18532)
robbycandra Jul 4, 2020
aa40deb
[cron] Bump distribution date (2020-07-05)
thinkyhead Jul 5, 2020
6eb19ce
Fix "'ubl' not declared" error (#18541)
notabucketofspam Jul 5, 2020
6df927d
Fix thermistors exist-for-reading tests (#18533)
ellensp Jul 5, 2020
ea520e6
Fix "Probing mesh point" message
thinkyhead Jul 5, 2020
67db7c0
Probing points followup (#18552)
oliver-eifler Jul 5, 2020
81cc803
Update actions on bugfix branch
thinkyhead Jul 5, 2020
2266a4c
Add CI for pushed commits (#18549)
thisiskeithb Jul 5, 2020
db0436c
Fix Neopixel set_color (#18544)
ManuelMcLure Jul 5, 2020
52a0895
Fix stall sensitivity adjustment for FTDI screens (#18554)
sjasonsmith Jul 5, 2020
f9b6c50
Minor pins cleanup
thinkyhead Jul 3, 2020
0fad953
Add comment to M412
thinkyhead Jul 4, 2020
dc6d835
Reduce string duplication
thinkyhead Jun 28, 2020
c8f7ace
STM32: No compile-time check for PWM_PIN (#18539)
GhostlyCrowd Jul 5, 2020
c02451b
Filament Runout Inverting => State (#18537)
robbycandra Jul 5, 2020
a6b8b12
Simplify home_z_safely, respect HOME_AFTER_DEACTIVATE
thinkyhead Jul 5, 2020
62c00aa
[cron] Bump distribution date (2020-07-06)
thinkyhead Jul 6, 2020
e484894
Filament state followup
thinkyhead Jul 6, 2020
9f5b8c9
Get SAMD51 CXX flags from script
thinkyhead Jul 6, 2020
764fc81
Use Material Preset 1 for PID autotune (#18446)
longlh Jul 6, 2020
af8be58
Fix broken POWER_LOSS_RECOVERY prompt (#18557)
sjasonsmith Jul 6, 2020
6f14d2d
Add Lerdge S,X,K (#18302)
xC0000005 Jul 6, 2020
9ee891c
Fix TMC homing phase coils alignment (#18528)
GMagician Jul 6, 2020
9a0b9de
Scale runout distance setting for editable range (#18567)
shuttercat Jul 6, 2020
378b568
0.7.1 <= TMCStepper <= 0.7.9 (#18564)
sjasonsmith Jul 6, 2020
ea8c3a9
Reduce 'first loop' temperature residency time (#18421)
espr14 Jul 6, 2020
12e7106
Update and fix POWER_MONITOR (#18561)
ellensp Jul 6, 2020
d3b2c09
[cron] Bump distribution date (2020-07-07)
thinkyhead Jul 7, 2020
9546847
Temp Residency followup
thinkyhead Jul 7, 2020
d6682c8
Whitespace cleanup
thinkyhead Jul 7, 2020
ea94716
Combine command macros
thinkyhead Jul 7, 2020
588d40a
Fix typo in Configuration_adv.h (#18570)
notabucketofspam Jul 7, 2020
35bb616
[cron] Bump distribution date (2020-07-08)
thinkyhead Jul 8, 2020
759d63d
Tweak PLR debug
thinkyhead Jul 7, 2020
67b2b78
Fix warning with PIO
thinkyhead Jul 8, 2020
d6c1770
SKR 1.4 alert for unsupported LCD
thinkyhead Jun 28, 2020
f52a1eb
Update Chinese (zh_CN) language (#18580)
ccccmagicboy Jul 8, 2020
1815866
Show fixed V in Power Display with no V sensor (#18579)
ccccmagicboy Jul 8, 2020
c2e0e61
Fix User Temp Sensor (1000), reversed Pt100 / Pt1000 (#18590)
ellensp Jul 8, 2020
8a55f94
Fix some comments
thinkyhead Jul 8, 2020
915847b
Add `Cap:RUNOUT`
thinkyhead Jul 8, 2020
ca78a57
[cron] Bump distribution date (2020-07-09)
thinkyhead Jul 9, 2020
0eab9fc
Fix missing controller fan include
thinkyhead Jul 9, 2020
73fc077
Consolidate probe clearance, add section debug (#18576)
thinkyhead Jul 9, 2020
95c2cc3
Remove outdated comment (#18597)
GMagician Jul 9, 2020
abc5c93
Clean up some MMU comments
thinkyhead Jul 9, 2020
b0c6cfb
MarlinUI support for up to 5 Material Presets (#18488)
GMagician Jul 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app
#

# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 60

# Skip issues and pull requests created before a given timestamp. Timestamp must
# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
skipCreatedBefore: false

# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
exemptLabels: [ 'no-locking' ]

# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false

# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

# Assign `resolved` as the reason for locking. Set to `false` to disable
setLockReason: true

# Limit to only `issues` or `pulls`
# only: issues

# Optionally, specify configuration settings just for `issues` or `pulls`
# issues:
# exemptLabels:
# - help-wanted
# lockLabel: outdated

# pulls:
# daysUntilLock: 30

# Repository to extend settings from
# _extends: repo
17 changes: 13 additions & 4 deletions .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ on:
pull_request:
branches:
- bugfix-2.0.x
- dev-2.1.x
paths-ignore:
- config/**
- data/**
- docs/**
- '**/*.md'
push:
branches:
- bugfix-2.0.x
paths-ignore:
- config/**
- data/**
Expand All @@ -18,6 +25,8 @@ on:

jobs:
test_builds:
name: Run All Tests
if: github.repository == 'MarlinFirmware/Marlin'

runs-on: ubuntu-latest

Expand Down Expand Up @@ -67,6 +76,7 @@ jobs:
- rumba32
- mks_robin_pro
- STM32F103RET6_creality
- LERDGEX

# Put lengthy tests last

Expand Down Expand Up @@ -104,8 +114,7 @@ jobs:
- name: Run ${{ matrix.test-platform }} Tests
run: |
# Inline tests script
[[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
chmod +x buildroot/bin/*
chmod +x buildroot/share/tests/*
export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}
chmod +x buildroot/tests/*
export PATH=./buildroot/bin/:./buildroot/tests/:${PATH}
run_tests . ${{ matrix.test-platform }}
31 changes: 22 additions & 9 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -1162,12 +1162,11 @@
*
* RAMPS-based boards use SERVO3_PIN for the first runout sensor.
* For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
* By default the firmware assumes HIGH=FILAMENT PRESENT.
*/
//#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING false // Set to true to invert the logic of the sensor.
#define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.

Expand Down Expand Up @@ -1376,14 +1375,14 @@
//
// - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
// - If stepper drivers time out, it will need X and Y homing again before Z homing.
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing.
// - Prevent Z homing when the Z probe is outside bed area.
//
//#define Z_SAFE_HOMING

#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT X_CENTER // X point for Z homing when homing all axes (G28).
#define Z_SAFE_HOMING_Y_POINT Y_CENTER // Y point for Z homing when homing all axes (G28).
#define Z_SAFE_HOMING_X_POINT X_CENTER // X point for Z homing
#define Z_SAFE_HOMING_Y_POINT Y_CENTER // Y point for Z homing
#endif

// Homing speeds (mm/m)
Expand Down Expand Up @@ -1638,9 +1637,9 @@
* Select the language to display on the LCD. These languages are available:
*
* en, an, bg, ca, cz, da, de, el, el_gr, es, eu, fi, fr, gl, hr, hu, it,
* jp_kana, ko_KR, nl, pl, pt, pt_br, ru, sk, tr, uk, vi, zh_CN, zh_TW, test
* jp_kana, ko_KR, nl, pl, pt, pt_br, ro ru, sk, tr, uk, vi, zh_CN, zh_TW, test
*
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek', 'el_gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'hu':'Hungarian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ru':'Russian', 'sk':'Slovak', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)', 'test':'TEST' }
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek', 'el_gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'hu':'Hungarian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ro':'Romanian', 'ru':'Russian', 'sk':'Slovak', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)', 'test':'TEST' }
*/
#define LCD_LANGUAGE en

Expand Down Expand Up @@ -1928,6 +1927,8 @@
// IMPORTANT: The U8glib library is required for Graphical Display!
// https://github.com/olikraus/U8glib_Arduino
//
// NOTE: If the LCD is unresponsive you may need to reverse the plugs.
//

//
// RepRapDiscount FULL GRAPHIC Smart Controller
Expand Down Expand Up @@ -2089,6 +2090,11 @@
//
//#define OVERLORD_OLED

//
// FYSETC OLED 2.42" 128 × 64 FULL GRAPHICS CONTROLLER with WS2812 RGB
// Where to find : https://www.aliexpress.com/item/4000345255731.html
//#define FYSETC_242_OLED_12864 // Uses the SSD1309 controller

//=============================================================================
//========================== Extensible UI Displays ===========================
//=============================================================================
Expand Down Expand Up @@ -2119,6 +2125,10 @@
//
//#define EXTENSIBLE_UI

#if ENABLED(EXTENSIBLE_UI)
//#define EXTUI_LOCAL_BEEPER // Enables use of local Beeper pin with external display
#endif

//=============================================================================
//=============================== Graphical TFTs ==============================
//=============================================================================
Expand All @@ -2129,9 +2139,12 @@
//#define FSMC_GRAPHICAL_TFT

//
// TFT Little VGL UI
// TFT LVGL UI
//
// Default MKS icons and fonts: https://git.io/JJvzK
// Copy mks_pic and mks_font folders to the root of your SD
//
//#define TFT_LITTLE_VGL_UI
//#define TFT_LVGL_UI

//=============================================================================
//============================ Other Controllers ============================
Expand Down
30 changes: 18 additions & 12 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// @section temperature

//===========================================================================
//=============================Thermal Settings ============================
//============================= Thermal Settings ============================
//===========================================================================

/**
Expand Down Expand Up @@ -1519,7 +1519,7 @@
// ADC Button Debounce
//
#if HAS_ADC_BUTTONS
#define ADC_BUTTON_DEBOUNCE_DELAY 16 // (ms) Increase if buttons bounce or repeat too fast
#define ADC_BUTTON_DEBOUNCE_DELAY 16 // Increase if buttons bounce or repeat too fast
#endif

// @section safety
Expand Down Expand Up @@ -1553,8 +1553,9 @@
//#define BABYSTEP_WITHOUT_HOMING
//#define BABYSTEP_XY // Also enable X/Y Babystepping. Not supported on DELTA!
#define BABYSTEP_INVERT_Z false // Change if Z babysteps should go the other way
#define BABYSTEP_MULTIPLICATOR_Z 1 // Babysteps are very small. Increase for faster motion.
#define BABYSTEP_MULTIPLICATOR_XY 1
//#define BABYSTEP_MILLIMETER_UNITS // Specify BABYSTEP_MULTIPLICATOR_(XY|Z) in mm instead of micro-steps
#define BABYSTEP_MULTIPLICATOR_Z 1 // (steps or mm) Steps or millimeter distance for each Z babystep
#define BABYSTEP_MULTIPLICATOR_XY 1 // (steps or mm) Steps or millimeter distance for each XY babystep

//#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
#if ENABLED(DOUBLECLICK_FOR_Z_BABYSTEPPING)
Expand Down Expand Up @@ -1828,7 +1829,7 @@

// @section motion

// The number of lineear moves that can be in the planner at once.
// The number of linear moves that can be in the planner at once.
// The value of BLOCK_BUFFER_SIZE must be a power of 2 (e.g. 8, 16, 32)
#if BOTH(SDSUPPORT, DIRECT_STEPPING)
#define BLOCK_BUFFER_SIZE 8
Expand Down Expand Up @@ -1901,6 +1902,9 @@
// This option inserts short delays between lines of serial output.
#define SERIAL_OVERRUN_PROTECTION

// For serial echo, the number of digits after the decimal point
//#define SERIAL_FLOAT_PRECISION 4

// @section extras

/**
Expand Down Expand Up @@ -3425,23 +3429,25 @@

/**
* MMU Extruder Sensor
* Add support for Prusa IR Sensor (or other) to detect that filament reach the extruder to make loading filament more reliable
* If your extruder is equipped with a filament sensor located less than 38mm from the gears you can use this feature
* During loading to the extruder, the sensor will stop the loading command when he's triggered and make a last move to load filament to the gears
* If no filament is detected, MMU2 will make more loading attemps, if finally no filament is detected, the printer will enter in runout state
*
* Support for a Prusa (or other) IR Sensor to detect filament near the extruder
* and make loading more reliable. Suitable for an extruder equipped with a filament
* sensor less than 38mm from the gears.
*
* During loading the extruder will stop when the sensor is triggered, then do a last
* move up to the gears. If no filament is detected, the MMU2 can make some more attempts.
* If all attempts fail, a filament runout will be triggered.
*/

//#define MMU_EXTRUDER_SENSOR
#if ENABLED(MMU_EXTRUDER_SENSOR)
#define MMU_LOADING_ATTEMPTS_NR 5 //max. number of attempts to load filament if first load fail
#endif

/**
* Using a sensor like the MMU2S
* This mode only work if you have a MK3S extruder with sensor sensing the extruder idler mmu2s
* This mode requires a MK3S extruder with a sensor at the extruder idler, like the MMU2S.
* See https://help.prusa3d.com/en/guide/3b-mk3s-mk2-5s-extruder-upgrade_41560, step 11
*/

//#define PRUSA_MMU2_S_MODE
#if ENABLED(PRUSA_MMU2_S_MODE)
#define MMU2_C0_RETRY 5 // Number of retries (total time = timeout*retries)
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/HAL/LPC1768/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void HAL_init() {
delay(1000); // Give OS time to notice
USB_Connect(TRUE);

#if !BOTH(SHARED_SD_CARD, INIT_SDCARD_ON_BOOT) && DISABLED(NO_SD_HOST_DRIVE)
#if DISABLED(NO_SD_HOST_DRIVE)
MSC_SD_Init(0); // Enable USB SD card access
#endif

Expand All @@ -140,7 +140,7 @@ void HAL_init() {

// HAL idle task
void HAL_idletask() {
#if ENABLED(SHARED_SD_CARD)
#if HAS_SHARED_MEDIA
// If Marlin is using the SD card we need to lock it to prevent access from
// a PC via USB.
// Other HALs use IS_SD_PRINTING() and IS_SD_FILE_OPEN() to check for access but
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/HAL/SAMD51/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ void HAL_adc_init();
#define HAL_ADC_READY() true

void HAL_adc_start_conversion(const uint8_t adc_pin);
inline uint16_t HAL_adc_get_result() { return HAL_adc_result; }

//
// Pin Map
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/HAL/SAMD51/timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
// --------------------------------------------------------------------------

const tTimerConfig TimerConfig[NUM_HARDWARE_TIMERS+1] = {
{ {.pTc=TC0}, TC0_IRQn, TC_PRIORITY(0) }, // 0 - stepper
{ {.pTc=TC0}, TC0_IRQn, TC_PRIORITY(0) }, // 0 - stepper (assigned priority 2)
{ {.pTc=TC1}, TC1_IRQn, TC_PRIORITY(1) }, // 1 - stepper (needed by 32 bit timers)
{ {.pTc=TC2}, TC2_IRQn, TC_PRIORITY(2) }, // 2 - tone (framework)
{ {.pTc=TC3}, TC3_IRQn, TC_PRIORITY(3) }, // 3 - servo
{ {.pTc=TC4}, TC4_IRQn, TC_PRIORITY(4) }, // 4 - software serial
{ {.pTc=TC2}, TC2_IRQn, 5 }, // 2 - tone (reserved by framework and fixed assigned priority 5)
{ {.pTc=TC3}, TC3_IRQn, TC_PRIORITY(3) }, // 3 - servo (no interrupts used)
{ {.pTc=TC4}, TC4_IRQn, TC_PRIORITY(4) }, // 4 - software serial (no interrupts used)
{ {.pTc=TC5}, TC5_IRQn, TC_PRIORITY(5) },
{ {.pTc=TC6}, TC6_IRQn, TC_PRIORITY(6) },
{ {.pTc=TC7}, TC7_IRQn, TC_PRIORITY(7) },
{ {.pRtc=RTC}, RTC_IRQn, TC_PRIORITY(8) } // 8 - temperature
{ {.pRtc=RTC}, RTC_IRQn, TC_PRIORITY(8) } // 8 - temperature (assigned priority 6)
};

// --------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions Marlin/src/HAL/STM32/fastio.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void FastIO_init(); // Must be called before using fast io macros
#define IS_OUTPUT(IO)

#define PWM_PIN(P) digitalPinHasPWM(P)
#define NO_COMPILE_TIME_PWM

// digitalRead/Write wrappers
#define extDigitalRead(IO) digitalRead(IO)
Expand Down
9 changes: 9 additions & 0 deletions Marlin/src/HAL/STM32/timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
#define TEMP_TIMER_IRQ_PRIO 14 // 14 = after hardware ISRs
#endif

// Ensure the default timer priority is somewhere between the STEP and TEMP priorities.
// The STM32 framework defaults to interrupt 14 for all timers. This should be increased so that
// timing-sensitive operations such as speaker output are note impacted by the long-running
// temperature ISR. This must be defined in the platformio.ini file or the board's variant.h,
// so that it will be consumed by framework code.
#if !(TIM_IRQ_PRIO > STEP_TIMER_IRQ_PRIO && TIM_IRQ_PRIO < TEMP_TIMER_IRQ_PRIO)
#error "Default timer interrupt priority is unspecified or set to a value which may degrade performance."
#endif

#if HAS_TMC_SW_SERIAL
#include <SoftwareSerial.h>
#ifndef SWSERIAL_TIMER_IRQ_PRIO
Expand Down
7 changes: 3 additions & 4 deletions Marlin/src/HAL/STM32F1/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ void HAL_init() {
// HAL idle task
void HAL_idletask() {
#ifdef USE_USB_COMPOSITE
#if ENABLED(SHARED_SD_CARD)
#if HAS_SHARED_MEDIA
// If Marlin is using the SD card we need to lock it to prevent access from
// a PC via USB.
// Other HALs use IS_SD_PRINTING() and IS_SD_FILE_OPEN() to check for access but
// this will not reliably detect delete operations. To be safe we will lock
// the disk if Marlin has it mounted. Unfortunately there is currently no way
// to unmount the disk from the LCD menu.
// if (IS_SD_PRINTING() || IS_SD_FILE_OPEN())
/* copy from lpc1768 framework, should be fixed later for process SHARED_SD_CARD*/
/* copy from lpc1768 framework, should be fixed later for process HAS_SHARED_MEDIA*/
#endif
// process USB mass storage device class loop
MarlinMSC.loop();
Expand All @@ -277,9 +277,8 @@ void HAL_clear_reset_source() { }

/**
* TODO: Check this and change or remove.
* currently returns 1 that's equal to poweron reset.
*/
uint8_t HAL_get_reset_source() { return 1; }
uint8_t HAL_get_reset_source() { return RST_POWER_ON; }

void _delay_ms(const int delay_ms) { delay(delay_ms); }

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ uint32_t LCD_IO_ReadData(uint16_t RegValue, uint8_t ReadSize) {
return uint32_t(data);
}

#if ENABLED(LCD_USE_DMA_FSMC)
#ifdef LCD_USE_DMA_FSMC

void LCD_IO_WriteMultiple(uint16_t color, uint32_t count) {
while (count > 0) {
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32F1/onboard_sd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "SPI.h"
#include "fastio.h"

#if ENABLED(SHARED_SD_CARD)
#if HAS_SHARED_MEDIA
#ifndef ON_BOARD_SPI_DEVICE
#define ON_BOARD_SPI_DEVICE SPI_DEVICE
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32_F4_F7/eeprom_emul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ uint16_t EE_WriteVariable(uint16_t VirtAddress, uint16_t Data) {
* @brief Erases PAGE and PAGE1 and writes VALID_PAGE header to PAGE
* @param None
* @retval Status of the last operation (Flash write or erase) done during
* EEPROM formating
* EEPROM formatting
*/
static HAL_StatusTypeDef EE_Format() {
FLASH_EraseInitTypeDef pEraseInit;
Expand Down
Loading