Skip to content

Commit 4394ab0

Browse files
committed
Merge branch 'bugfix-2.1.x' into pr/25332
2 parents ef0af14 + 774861b commit 4394ab0

File tree

1,001 files changed

+57771
-41008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,001 files changed

+57771
-41008
lines changed

.devcontainer/Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/python-3/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
4+
ARG VARIANT="3.9.0-buster"
5+
FROM python:${VARIANT}
6+
7+
# [Option] Install Node.js
8+
ARG INSTALL_NODE="true"
9+
ARG NODE_VERSION="lts/*"
10+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
11+
12+
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
13+
# COPY requirements.txt /tmp/pip-tmp/
14+
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
15+
# && rm -rf /tmp/pip-tmp
16+
17+
# [Optional] Uncomment this section to install additional OS packages.
18+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
19+
# && apt-get -y install --no-install-recommends <your-package-list-here>
20+
21+
# [Optional] Uncomment this line to install global node packages.
22+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
23+
24+
25+
RUN pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
26+
RUN platformio update
27+
# To get the test platforms
28+
RUN pip install PyYaml
29+
#ENV PATH /code/buildroot/bin/:/code/buildroot/tests/:${PATH}

.devcontainer/devcontainer.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/python-3
3+
{
4+
"name": "Python 3",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
"context": "..",
8+
"args": {
9+
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9
10+
"VARIANT": "3.9.0-buster",
11+
// Options
12+
"INSTALL_NODE": "false",
13+
"NODE_VERSION": "lts/*"
14+
}
15+
},
16+
17+
// Set *default* container specific settings.json values on container create.
18+
"settings": {
19+
"python.pythonPath": "/usr/local/bin/python",
20+
"python.languageServer": "Pylance",
21+
"python.linting.enabled": true,
22+
"python.linting.pylintEnabled": true,
23+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
24+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
25+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
26+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
27+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
28+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
29+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
30+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
31+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
32+
},
33+
34+
// Add the IDs of extensions you want installed when the container is created.
35+
"extensions": [
36+
"ms-python.python",
37+
"ms-python.vscode-pylance",
38+
"platformio.platformio-ide",
39+
"marlinfirmware.auto-build",
40+
"editorconfig.editorconfig"
41+
],
42+
43+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44+
// "forwardPorts": [],
45+
46+
// Use 'postCreateCommand' to run commands after the container is created.
47+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
48+
49+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50+
// "remoteUser": "vscode"
51+
}

.editorconfig

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ root = true
44
[{*.patch,syntax_test_*}]
55
trim_trailing_whitespace = false
66

7-
[{*.c,*.cpp,*.h,*.ino}]
8-
charset = utf-8
9-
10-
[{*.c,*.cpp,*.h,*.ino,Makefile}]
7+
[{*.c,*.cpp,*.h,*.ino,*.py,Makefile}]
118
trim_trailing_whitespace = true
129
insert_final_newline = true
1310
end_of_line = lf
11+
12+
[{*.c,*.cpp,*.h,*.ino}]
13+
charset = utf-8
1414
indent_style = space
1515
indent_size = 2
1616

17+
[{Makefile}]
18+
indent_style = tab
19+
indent_size = 2
20+
1721
[{*.py}]
1822
indent_style = space
1923
indent_size = 4

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ body:
100100
- type: input
101101
attributes:
102102
label: Printer model
103-
description: Creality Ender 3, Prusa mini, or Kossel Delta?
103+
description: Creality Ender-3, Prusa mini, or Kossel Delta?
104104

105105
- type: input
106106
attributes:

.github/workflows/bump-date.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020

21-
- name: Check out bugfix-2.1.x
21+
- name: Check out bugfix-2.0.x
2222
uses: actions/checkout@v2
2323
with:
24-
ref: bugfix-2.1.x
24+
ref: bugfix-2.0.x
2525

2626
- name: Bump Date (bugfix-2.0.x)
2727
run: |

.github/workflows/test-builds.yml

+71-53
Original file line numberDiff line numberDiff line change
@@ -33,90 +33,108 @@ jobs:
3333
strategy:
3434
matrix:
3535
test-platform:
36-
# Base Environments
3736

38-
- DUE
39-
- DUE_archim
40-
- esp32
37+
# Native
4138
- linux_native
39+
40+
# AVR
4241
- mega2560
4342
- at90usb1286_dfu
44-
- teensy31
45-
- teensy35
46-
- teensy41
47-
- SAMD21_minitronics20
48-
- SAMD51_grandcentral_m4
49-
- PANDA_PI_V29
50-
51-
# Extended AVR Environments
5243

44+
# AVR Extended
5345
- FYSETC_F6
5446
- mega1280
47+
- melzi_optiboot
5548
- rambo
5649
- sanguino1284p
5750
- sanguino644p
5851

59-
# STM32F1 (Maple) Environments
52+
# SAM3X8E
53+
- DUE
54+
- DUE_archim
6055

61-
#- STM32F103RC_btt_maple
62-
- STM32F103RC_btt_USB_maple
63-
- STM32F103RC_fysetc_maple
64-
- STM32F103RC_meeb_maple
65-
- jgaurora_a5s_a1_maple
66-
- STM32F103VE_longer_maple
67-
#- mks_robin_maple
68-
- mks_robin_lite_maple
69-
- mks_robin_pro_maple
70-
#- mks_robin_nano_v1v2_maple
71-
#- STM32F103RE_creality_maple
72-
- STM32F103VE_ZM3E4V2_USB_maple
56+
# SAMD21
57+
- SAMD51_grandcentral_m4
58+
- SAMD21_minitronics20
59+
60+
# ESP32
61+
- esp32
62+
- mks_tinybee
63+
64+
# Teensy 2
65+
#- at90usb1286_cdc
66+
67+
# Teensy MK20DX256
68+
- teensy31
69+
70+
# Teensy MK64FX512, MK66FX1M0
71+
- teensy35
72+
73+
# Teensy IMXRT1062DVx6A
74+
- teensy41
7375

74-
# STM32 (ST) Environments
76+
# STM32F0
77+
- malyan_M300
78+
- STM32F070CB_malyan
79+
- STM32F070RB_malyan
7580

81+
# STM32F1
82+
- chitu_f103
83+
- mks_robin
84+
- mks_robin_nano_v1v2
85+
- PANDA_PI_V29
7686
- STM32F103RC_btt
77-
#- STM32F103RC_btt_USB
87+
- STM32F103RC_fysetc
7888
- STM32F103RE_btt
7989
- STM32F103RE_btt_USB
8090
- STM32F103RE_creality
81-
- STM32F401RC_creality
8291
- STM32F103VE_longer
83-
- STM32F407VE_black
92+
#- mks_robin_mini
93+
#- mks_robin_nano_v1_3_f4_usbmod
94+
#- mks_robin_nano_v1v2_usbmod
95+
#- STM32F103CB_malyan
96+
#- STM32F103RC_btt_USB
97+
#- STM32F103RE
98+
99+
# STM32F4
100+
- ARMED
84101
- BIGTREE_BTT002
85-
- BIGTREE_SKR_PRO
86102
- BIGTREE_GTR_V1_0
87-
- mks_robin
88-
- ARMED
89-
- FYSETC_S6
90-
- STM32F070CB_malyan
91-
- STM32F070RB_malyan
92-
- malyan_M300
103+
- BIGTREE_SKR_PRO
93104
- FLYF407ZG
94-
- rumba32
95-
- LERDGEX
105+
- FYSETC_S6
96106
- LERDGEK
97-
- mks_robin_nano_v1v2
98-
#- mks_robin_nano_v1v2_usbmod
99-
#- mks_robin_nano_v1_3_f4_usbmod
107+
- LERDGEX
108+
- Opulo_Lumen_REV3
109+
- rumba32
110+
- STM32F401RC_creality
111+
- STM32F407VE_black
112+
113+
# STM32F7
100114
- NUCLEO_F767ZI
101115
- REMRAM_V1
102-
- BTT_SKR_SE_BX
103-
- chitu_f103
104-
- Opulo_Lumen_REV3
105116

106-
# ESP32 environments
107-
- mks_tinybee
117+
# STM32H7
118+
- BTT_SKR_SE_BX
108119

109-
# Put lengthy tests last
120+
# STM32F1 (Maple)
121+
- jgaurora_a5s_a1_maple
122+
- mks_robin_lite_maple
123+
- mks_robin_pro_maple
124+
- STM32F103RC_btt_USB_maple
125+
- STM32F103RC_fysetc_maple
126+
- STM32F103RC_meeb_maple
127+
- STM32F103VE_longer_maple
128+
- STM32F103VE_ZM3E4V2_USB_maple
129+
#- mks_robin_maple
130+
#- mks_robin_nano_v1v2_maple
131+
#- STM32F103RC_btt_maple
132+
#- STM32F103RE_creality_maple
110133

134+
# LPC176x - Lengthy tests
111135
- LPC1768
112136
- LPC1769
113137

114-
# Non-working environment tests
115-
#- at90usb1286_cdc
116-
#- STM32F103CB_malyan
117-
#- STM32F103RE
118-
#- mks_robin_mini
119-
120138
steps:
121139

122140
- name: Check out the PR

.gitignore

+19-26
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,18 @@
2121

2222
# Generated files
2323
_Version.h
24-
bdf2u8g
24+
bdf2u8g.exe
25+
genpages.exe
2526
marlin_config.json
2627
mczip.h
2728
*.gen
2829
*.sublime-workspace
2930

30-
#
3131
# OS
32-
#
3332
applet/
3433
.DS_Store
3534

36-
#
37-
# Misc
38-
#
39-
*~
40-
*.orig
41-
*.rej
42-
*.bak
43-
*.idea
44-
*.i
45-
*.ii
46-
*.swp
47-
tags
48-
49-
#
50-
# C++
51-
#
52-
# Compiled Object files
35+
# Compiled C++ Object files
5336
*.slo
5437
*.lo
5538
*.o
@@ -80,10 +63,7 @@ tags
8063
*.out
8164
*.app
8265

83-
#
84-
# C
85-
#
86-
# Object files
66+
# Compiled C Object files
8767
*.o
8868
*.ko
8969
*.obj
@@ -143,13 +123,13 @@ vc-fileutils.settings
143123
.vscode/*
144124
!.vscode/extensions.json
145125

146-
#Simulation
126+
# Simulation files
147127
imgui.ini
148128
eeprom.dat
149129
spi_flash.bin
150130
fs.img
151131

152-
#cmake
132+
# CMake
153133
CMakeLists.txt
154134
src/CMakeLists.txt
155135
CMakeListsPrivate.txt
@@ -170,3 +150,16 @@ __pycache__
170150

171151
# IOLogger logs
172152
*_log.csv
153+
154+
# Misc.
155+
*~
156+
*.orig
157+
*.rej
158+
*.bak
159+
*.idea
160+
*.i
161+
*.ii
162+
*.swp
163+
tags
164+
*.logs
165+
*.bak

0 commit comments

Comments
 (0)