D.R.racer
dbb0269bd4
Make indentation consistent with surrounding code in factory_reset()
2021-02-17 08:27:49 +01:00
3d-gussner
afc15b42bb
Indentations
2021-02-17 08:13:32 +01:00
3d-gussner
59c2b7e795
Fix Fan error issues.
2021-02-17 07:42:12 +01:00
3d-gussner
66ea1bdfba
Indentations
2021-02-16 12:31:23 +01:00
3d-gussner
d6c6517fcd
Back to Status after Resuming
2021-02-16 07:27:46 +01:00
3d-gussner
c2637d9430
Documentation Show Main Menu
2021-02-15 18:35:04 +01:00
3d-gussner
c07bcd172a
Fix NO Stop print during MBL
2021-02-15 18:34:08 +01:00
3d-gussner
583993b7e2
Back to "Status" after gcode M0/M1
2021-02-15 15:25:04 +01:00
3d-gussner
25928232e4
Merge remote-tracking branch 'upstream/MK3' into MK3_PFW-960
2021-02-15 13:06:47 +01:00
3d-gussner
9071a9f8fd
Gcode M1
must have a string while M0
it is optional
...
As the `M0/M1` moved to the beginning of the parser
- parser would not be able to "find" `M1nn` command if the query was `M1` instead of `M1 `
- to be able to "stop/halt" without sending a string and display default message use gcode `M0`
- as there are no `M0nn` gcodes the parser can query `M0` without additional space needed as in `M1 `
2021-02-15 12:51:12 +01:00
3d-gussner
fc270a356a
Fix indentations
2021-02-15 12:50:40 +01:00
DRracer
86e117679c
Merge pull request #3011 from 3d-gussner/MK3_translation_0121
...
Fix few translations introduced with #2982
2021-02-15 11:16:54 +01:00
3d-gussner
c95a8e13d7
Fix indentations to 4 spaces per tab
2021-02-12 11:47:02 +01:00
3d-gussner
f810047a5c
Switch between Remaing and Change time every few seconds
...
- If `M73` `R,S,C,D` values set the LCD Info screen clock switchs between Remaining and Change time
- If Remaining time is 0 while Change time is >0 the clock switchs between Change time and actual printing time
- If Change is 0 while Remaining time is >0 the clock shows the Remaining time
- If both are 0 the clock shows the actual printing time
- `M73 C` values are shown in "Normal" mode
- `M73 D` values are shown in "Stealth" mode
- Changing the speed will try to calculate the espected times and show `?` behind `R` or `C`
2021-02-12 11:29:47 +01:00
3d-gussner
d2e60aee90
Use CLOCK_INTERVAL_TIME
2021-02-11 10:45:26 +01:00
3d-gussner
cf982b0d4d
Fix timer issue
...
The remaining time stays for ~5 seconds while the change time stays just for ~1 second
2021-02-11 10:20:06 +01:00
3d-gussner
14b4bf5fa5
Add CLOCK_INTERVAL_TIME and ShortTimer IntervalTimer
2021-02-11 07:47:44 +01:00
3d-gussner
b9a3fa2ddd
fix time at speed
2021-02-11 07:47:44 +01:00
3d-gussner
b13d4b71d4
Add Change time behind existing message
2021-02-11 07:47:44 +01:00
3d-gussner
4998cfb70d
Fix printing time being shown without M73
gcode
...
Adjust estimated times only if speed is changed. Printing time has to stay printing time.
2021-02-11 07:47:43 +01:00
3d-gussner
d063ffb141
Add parameter D
to gcode M73
for silent/stealth mode
2021-02-11 07:47:43 +01:00
3d-gussner
83e791cbbe
Fix temp Build number
2021-02-11 07:47:43 +01:00
3d-gussner
91c767b0f2
Reduce code size
2021-02-11 07:47:43 +01:00
3d-gussner
ae48e7c3ce
indentation
2021-02-11 07:47:43 +01:00
3d-gussner
f4ca6ee59d
Fix typo
2021-02-11 07:47:43 +01:00
3d-gussner
cca90da64b
Include silent mode on time change
...
- depends on difference between print time remaining NORMAL vs SILENT mode
2021-02-11 07:47:43 +01:00
3d-gussner
cb61436093
Add remaining time to change/pause/user interaction to LCD Info screen
...
- Add parameter `C` to gcode `M73`
- LCD Info screen switches to change time if last `M73` gcode contains `C` parameter
- Examples:
- `M73 P5 R120` will display on LCD ` SD 5% 02:00R ` if it is printing at 100% speed
- `M73 P5 R120 C60` will display on LCD ` SD 5% 01:00C ` if it is printing at 100% speed
Slicers can generate "Time to change/pause/user interaction" using `C<mins:0-65535>` parameter to "overwrite" the remaining print time.
To switch between time to change and remaining time just send in intervals `M73` with or without `C` parameter.
2021-02-11 07:47:43 +01:00
Alex Voinea
1c1ff722c0
Move sort_order to stack during ::presort
2021-02-10 18:16:26 +02:00
Alex Voinea
8397dae386
Remove comment
2021-02-10 18:15:18 +02:00
Alex Voinea
b4de57c365
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2021-02-10 17:08:28 +02:00
Yuri D'Elia
e010ca8ceb
Fix conflicting extern/inline declarations
...
The functions find_bed_induction_sensor_point_* have conflicting
extern and inline declarations.
These are used outside of the compilation unit only, and thus there's no
point in defining them inline.
This causes a compilation failure at O1 and above, which is strangely
avoided at Os.
2021-02-10 14:50:13 +01:00
Alex Voinea
a95d497289
Remove commented out code and deprecated comments
2021-02-10 13:45:30 +02:00
Alex Voinea
8a068d4d36
Remove redundant position=0 in ::presort
2021-02-10 13:44:39 +02:00
Alex Voinea
b72ce00183
Reduce reserved space on stack for LONG_FILENAME_LENGTH by 1 in presort
...
LONG_FILENAME_LENGTH already includes a +1 for the \0 string termination
2021-02-10 13:43:46 +02:00
D.R.racer
7ad922e87b
Report fname instead of name
...
looks like being omitted in MK3 upstream fixes
2021-02-10 12:38:04 +01:00
D.R.racer
8d39880abf
Fix compilation against latest MK3 branch
2021-02-10 12:23:02 +01:00
DRracer
7aa4595211
Merge branch 'MK3' into thumbnails2
2021-02-10 12:15:57 +01:00
D.R.racer
c1ead75a73
Remove commented debug code
...
the whole PR is ready for review after successfull tests
2021-02-10 11:18:59 +01:00
3d-gussner
8bc46248f6
avoid having the block body twice in the code. Thanks to @DRracer
2021-02-10 11:09:29 +01:00
3d-gussner
e5711ea84f
Indentation to 4 spaces for tabs
2021-02-10 11:03:23 +01:00
Alex Voinea
a830d5b6b7
getfilename_next
2021-02-09 20:31:02 +02:00
Alex Voinea
8d1c5cbb27
Fix position table offset
2021-02-09 20:29:06 +02:00
Alex Voinea
e6ffc99ff5
Fix compiler bug ... again ...
...
:endit: :blobhydraulicpress:
2021-02-09 16:28:13 +02:00
Alex Voinea
d2a7c62b50
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2021-02-09 16:17:43 +02:00
DRracer
a47c971c75
Merge pull request #3010 from leptun/MK3_fix_M23
...
Fix M23
2021-02-09 15:06:51 +01:00
Alex Voinea
4fcbf95db6
apply RAII principle on the lsDive recursion limiter
2021-02-09 15:00:46 +02:00
D.R.racer
9ccda4c57f
Optimize code size
...
... looks like I've been able to reduce the code by 80B by using the
clamp999() function. There are other spots this function can be used as
well, I didn't touch those yet.
2021-02-09 09:10:23 +01:00
DRracer
e491b53f48
Merge branch 'MK3' into MK3_Fix_LCD_stats
2021-02-09 08:53:32 +01:00
DRracer
5c3683b4ad
Merge pull request #3022 from 3d-gussner/PFW-1182
...
PFW-1182 Fix too long translations during Load/Unload Filament
2021-02-09 08:24:31 +01:00
DRracer
d5d44d30a7
Merge pull request #2305 from 3d-gussner/MK3-Fix_M120_M121
...
Follow RepRap Wiki G-codes documentation
2021-02-09 07:52:14 +01:00
D.R.racer
3668cdeb30
Add Service prep. item into Factory reset
...
upon request from our Service dept. - it is to do the same stuff like
Shipping prep., but keep the printer's stats intact. Still, this has to
be verified and may undergo some further changes.
2021-02-08 17:27:32 +01:00
D.R.racer
5f49d65546
Farmers' request - allow file sorting menu item
2021-02-08 15:43:08 +01:00
3d-gussner
92db282eca
Merge remote-tracking branch 'upstream/MK3' into PFW-960
2021-02-08 12:48:27 +01:00
3d-gussner
aecbd7ab49
Fix c=aa
location in lang files
...
Fix too long translations in Spanish and Italian
2021-02-08 12:17:41 +01:00
3d-gussner
214695105c
Fix issue #2958
2021-02-08 11:33:46 +01:00
3d-gussner
fb39e7296b
Uniform message Press the knob
2021-02-08 10:58:41 +01:00
Alex Voinea
c739aa9003
M23 full path support.
2021-02-07 21:51:44 +02:00
Alex Voinea
f5cde38a7c
Remove duplicit debug line
2021-02-06 21:06:37 +02:00
Voinea Dragos
77a5082b56
Fix presort_flag duplicate declaration
2021-02-06 17:25:17 +02:00
Voinea Dragos
52f7a71dce
More fixes that were extracted from #2405
2021-02-06 14:59:11 +02:00
Voinea Dragos
f343e6432a
Fix diveSubfolder string termination
2021-02-06 12:55:51 +02:00
DRracer
2dfe21358f
Merge pull request #2838 from wavexx/m204_travel_acceleration
...
Implement M204 T (separate travel acceleration)
2021-02-05 16:27:50 +01:00
DRracer
77eb10000c
Merge pull request #2948 from 3d-gussner/PFW-1168
...
PFW-1168 Move Z up running xyz calibration
2021-02-05 16:18:07 +01:00
Alex Voinea
84d043d41b
Fix WorkDirDepth limit (for good this time)
2021-02-04 17:52:42 +02:00
Alex Voinea
90c0f33bc5
Fix farm filename when LFN is missing
2021-02-04 16:40:15 +02:00
Alex Voinea
080c44cb2e
Undo stupid hack for an error because of some compiler issue in the past
2021-02-04 16:37:24 +02:00
Alex Voinea
df163066fb
Fix "sorting files" messages for both ShellSort and BubbleSort
2021-02-04 15:44:15 +02:00
Alex Voinea
279c0aaa21
Fix double '>' bug and brutal refactoring
2021-02-04 14:21:37 +02:00
Yuri D'Elia
640e8d899b
Don't scroll one character past the filename end
2021-02-04 13:33:20 +02:00
Alex Voinea
8445f76eb9
Restructure for loop to work correctly in reverse
2021-02-04 13:26:15 +02:00
Alex Voinea
3c5c1e5167
Use enum for menu state code readability
2021-02-04 13:19:22 +02:00
Alex Voinea
ffc3a445ca
Remove even more dead code
2021-02-04 11:35:15 +02:00
Alex Voinea
d25b4a6bc9
Remove dead code (SDSORT_GCODE)
2021-02-03 19:18:13 +02:00
Alex Voinea
e52e68d4c1
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2021-02-03 18:30:36 +02:00
Alex Voinea
4c977cc335
Merge branch 'MK3' into MK3_NEW_SD_COMPILATION
2021-02-03 18:28:18 +02:00
Yuri D'Elia
186ce0f4b3
Handle acceleration settings in UVLO/power panic
...
Acceleration settings need to be saved in UVLO, since these are often
changed/set during a print. This is especially important for travel and
retract acceleration, which is usually set once per-print.
Saving and restoring is not 100% correct.
We save the current front-end value, which might ahead of the backend
when UVLO is triggered. Print acceleration, likely the most significant,
should be saved in the block buffer to be accurate.
Acceleration needs to be restored after the UVLO Z repositioning is
performed, using an M204 command. This is correct, however we don't save
the _temporary_ max acceleration limits set via M201, which could be
higher than the saved limits (via M500). This could result in lower
clamped values compared to the original print.
Maximum acceleration/jerk/feedrate limits should _all_ be saved in UVLO
in the future.
2021-02-03 11:28:51 +01:00
Yuri D'Elia
f7542aa064
Report travel acceleration in M503
...
Use the new M204 format consistently also in M503's output
2021-02-03 11:20:28 +01:00
Yuri D'Elia
76911f67db
Take advantage of the new is_uninitialized function
...
Save some space and perform some cleanup
2021-02-03 11:20:28 +01:00
Yuri D'Elia
45811f82aa
Initialize default travel_acceleration from EEPROM
...
When reading uninitialized memory, preset the travel acceleration to be
the same as the default acceleration.
2021-02-03 11:20:28 +01:00
Yuri D'Elia
5589954b77
Add DEFAULT_TRAVEL_ACCELERATION in all variants
...
Use the same value as DEFAULT_ACCELERATION for compatibility.
2021-02-03 11:20:28 +01:00
Yuri D'Elia
1c76152e62
Implement separate travel acceleration (M204 T)
...
Allow to separate extrusion and travel acceleration settings using M204,
as Marlin 1.1.x and 2.x does using M204 T.
This allows to reduce the number of instructions required during
printing, since resetting the acceleration for travel moves is no longer
required and can be done a single time during the print.
Provision for this parameter was pre-existing, but not implemented.
M204 has two forms: the lagacy format (Marlin <1.1):
M204 S[print-acc] T[retract-acc]
and the newer format:
M204 P[print-acc] R[retract-acc] T[travel-acc]
The distinction in the MK3 FW is done based on the presence of the P
parameter. If P is seen, the new format is adoped. In the new format
however, M204 T was ignored until this change.
To keep backward compatibility, M204 S[acc] will set both print and
travel acceleration, which is identical in behavior to recent versions
of Marlin.
2021-02-03 11:20:28 +01:00
3d-gussner
2ba24fe0d4
Add pause/resume to USB/host prints via LCD menu
...
Depending if SD or USB/host print the firmware sends
- SD print: `// action:paused` or `// action:resumed` are send to inform USB/Host
- USB/host print: `// action:pause` or `// action:resume` are send to trigger the USB/host to handle it
- USB/host must handle `// action:pause` and `// action:resume` correctly to work
- Tested with Octoprint
- It handles every thing correctly
- Any combination of Octoprint and/or LCD `pause` and `resume` working correctly
- Tested with Pronterface
- It pauses BUT doesn't send the printer in pause position, and so it is not possible to `resume` from LCD menu
- I guess some Macros can fix that.
- Repetier Host/Server documentation shows that it should work. Not tested.
Could save 56 bytes in first step and additional 38 bytes adding `MSG_PAUSE_PRINT` to messages.c/.h
Updated `lang_en*.txt`
@todo Polish translation is 19 characters long (it still fits) BUT should be corrected to 18 chars.
2021-02-03 11:00:26 +01:00
Alex Voinea
896f4e1dd1
Fix compile error
2021-02-02 19:14:05 +02:00
Alex Voinea
f6ae379077
Fix dir_names array definition. Prevents overrun
2021-02-02 19:08:44 +02:00
Alex Voinea
5c9d202871
Change MAX_DIR_DEPTH from 10 to 6
...
You can't run M23 with so many directories as the length of the command will exceed the maximum allowed by cmdqueue
2021-02-02 19:08:19 +02:00
3d-gussner
57e730c80c
Merge remote-tracking branch 'vojtech-pavlik/MK3' into MK3_Test_PRs
...
Fix merge issues PR1900
2021-02-02 13:49:34 +01:00
Alex Voinea
647cde0cae
Add documentation
2021-02-02 13:38:20 +02:00
Alex Voinea
2f4119a6d7
M552 - Printer IP address
2021-02-02 13:21:16 +02:00
DRracer
2b81abb24c
Merge pull request #2814 from wavexx/MK3_PAT9125_I2C
...
Use hardware TWI for the PAT9125 (optical) filament sensor
2021-02-02 09:15:35 +01:00
D.R.racer
15d76a7501
Remove duplicit incrementation of consecutive comment lines
...
It was left in the code in one of the refactoring/optimization passes.
It really didn't do any harm, but was limiting the performance of the
skipping algorithm.
+ some verification code added - will be removed after successful tests
2021-02-02 07:57:06 +01:00
DRracer
40e45c5eaa
Merge pull request #3009 from leptun/PFW-1144-LongPathName
...
"M27 P" support. Get current file absolute filename (file path)
2021-02-01 14:41:15 +01:00
DRracer
58c217a340
Merge pull request #2988 from leptun/PFW-1171-EEPROM_SN
...
Cache SN to EEPROM on startup
2021-02-01 14:24:13 +01:00
Alex Voinea
7e09df6a34
Add documentation
2021-02-01 14:54:44 +02:00
Alex Voinea
b6d56bc0f4
Change M27 argument from L to P as that makes more sense (path vs LFN))
2021-02-01 14:54:37 +02:00
Yuri D'Elia
ec4c1be058
Silence bUpdateEEPROM unused warning in MK3 variant
2021-02-01 07:09:44 +01:00
Voinea Dragos
30131c9ab5
Patch broken string PROGMEM transition with setTargetedHotend() error
2021-02-01 06:12:37 +01:00
Voinea Dragos
ea44d78d68
Merge branch 'MK3' into PFW-1171-EEPROM_SN
2021-01-31 17:19:00 +02:00
Voinea Dragos
698499f00d
split timer0 and timer2 initialization. Move timer2 init early
2021-01-31 17:18:32 +02:00
Voinea Dragos
6b6205d2f6
M27 refactoring and M27 L initial implementation
2021-01-31 15:06:20 +02:00
Yuri D'Elia
b8b75186fe
Remove the extra copy of CRITICAL_SECTION from fastio
2021-01-29 18:30:16 +01:00
Yuri D'Elia
31b3ad0613
Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C
2021-01-29 18:28:55 +01:00
Yuri D'Elia
2d71a071f0
Switch twi.c to fastio
2021-01-29 17:51:38 +01:00
Yuri D'Elia
1fa7b8cd8d
Move SDA/SCL pins into pins.h for fastio compatibility
...
fastio relies on macros for pin definitions, so we cannot use the const
declaration in Sd2PinMap or the arduino's definition.
Declare SDA/SCL_PIN into pins.h based on the current MCU, which is
identical in all our variants.
Remove the conflicting/unused declaration in Sd2PinMap.
2021-01-29 17:48:59 +01:00
Yuri D'Elia
30262b0a6e
Remove redundant definitions of CRITICAL_SECTION_*
...
Move CRITICAL_SECTION_START/END into fastio.h, where it's needed.
2021-01-29 17:30:04 +01:00
3d-gussner
d75a0fdcbd
Merge remote-tracking branch 'upstream/MK3' into MK3_translation_0121
2021-01-29 15:38:48 +01:00
DRracer
42311db5f1
Merge pull request #2789 from wavexx/MK3_TMC2130_DEDGE
...
Use/enable TMC2130 DEDGE support in MK3/MK3S
2021-01-29 11:13:09 +01:00
D.R.racer
caf58b16b6
Fix handling EOF
...
+ save ~160B by using local variables
+ rename some of the vars to more descriptive names
+ remove consecutiveEmptyLines handling from cmdqueue
2021-01-29 08:29:51 +01:00
Yuri D'Elia
e9d5c44732
Also toggle pins efficiently in sm4.c
...
Use the same technique used in fastio to toggle pins efficiently in sm4
when DEDGE is used.
2021-01-29 00:13:49 +01:00
D.R.racer
6c9c1423c6
Remove temporary changes from SdBaseFile.h
2021-01-28 09:42:50 +01:00
D.R.racer
71d825d0f2
Return SdBaseFile into previous state
...
no changes necessary afterall
2021-01-28 09:41:30 +01:00
D.R.racer
7279de7403
Separate reading G-code files and writing to a file
...
- extract common strings
- cleanup openFileWrite and openFileReadFilteredGcode formatting a bit
Alltogether - code size 400B down
2021-01-28 09:37:58 +01:00
D.R.racer
c05b625b1c
Fix occasionally skipped valid G-code lines
...
which also allowed for removal of the pre-increment -> post-increment
workaround
2021-01-28 08:13:16 +01:00
D.R.racer
d1fd5a555f
Clean up gfReset()
2021-01-27 14:12:11 +01:00
D.R.racer
b2cf5b7b6c
Fix seekSetFilteredGcode()
...
+some more debug code which will vanish after all is done and verified
2021-01-27 13:01:25 +01:00
D.R.racer
b6c59e08ac
Workaround ++gfCacheP into postincrement ld r22, Z+
...
TODO: ideally improve the automaton to work with postincrement only, at
least in this case.
2021-01-27 09:52:20 +01:00
D.R.racer
d275fe0e83
Extract gcode filter from SdBaseFile into SdFile + optimization
...
- Start saving instructions as the whole PR was >1KB long.
- It turned out the compiler was unable to understand the core skipping
cycle and an ASM version had to be used.
- Add seekSet aware of the G-code filter
2021-01-27 09:33:28 +01:00
D.R.racer
c3758d350e
Fast skipping of large comment blocks
...
This is an extension/optimization of PR #2956 .
It uses the cached 512B block buffer to avoid heavy-weight read() in SdBaseFile.
Even though this principle allowed the AVR to skip ~600KB of data within ~5 seconds,
the impact on code base is huge, especially into well proven and long-term stable
parts like reading a file from the SD card.
The sole purpose of this PR is to show/verify the possibility of the AVR CPU
in relation to adding thumbnails into MK3 G-codes.
Moreover, this PR shall not be merged unless the missing/commented features
are restored - especially file seeking and M84 search.
PFW-1175
2021-01-27 07:03:51 +01:00
D.R.racer
dcc6605809
Workaround for skipping large comment blocks
...
If there are large blocks of comments in the G-code,
the printer may get shot down by its own watchdog.
Watchdog is generally set to 4s and updated only
in manage_heaters (and some other spots in some specific cases).
So far, the code reading the file and feeding it into Marlin
cycles indefinitely until it finds valid G-code lines and fills up the
command queue.
If the block is large enough, the printer cannot read it completely
within those 4s.
A simple workaround - bail out after some consecutive empty/comment
lines to enable other parts of code do their job (especially
manage_heaters).
Tested on MK404, previous FW fails with 600KB of comment lines at the
beginning, this patch survives. The printer even draws some update
on its status screen before starting a real print.
2021-01-27 07:03:51 +01:00
Yuri D'Elia
a9625747db
Reinstate the nop instruction as delay in non-DEDGE
...
When TMC2130_MINIMUM_PULSE is 0 a minimum delay is implied.
In this case, use a single "nop" instruction.
2021-01-26 19:43:29 +01:00
Yuri D'Elia
d3734b02cc
Also fix delay instances inside unused BACKLASH_[XY]
2021-01-26 16:18:23 +01:00
Yuri D'Elia
b17cdcd4d7
Ensure MINIMUM_PULSE is always 0 in DEDGE mode
...
This ensures delays are always properly elided without having to check
for DEDGE all over the place.
2021-01-26 16:12:59 +01:00
Yuri D'Elia
2a6989ecd5
Remove TMC2130 special-cases
...
With the new STEPPER_MINIMUM_DELAY being automatically removed for
TMC2130 we no longer need to add specialized #ifdefs for DEDGE in
babystep.
2021-01-26 16:09:23 +01:00
Yuri D'Elia
4fed728e08
Elide delayMicroseconds for TMC2130 in non-DEDGE mode
...
Introduce new macros TMC2130_MINIMUM_DELAY/STEPPER_MINIMUM_DELAY for
blocking pauses.
If MINIMUM_PULSE has defined to be zero, avoid the delay call entirely.
2021-01-26 16:02:53 +01:00
3d-gussner
f40c593d11
Fix few translations not being used due to spaces or upper case
2021-01-26 14:15:34 +01:00
D.R.racer
c28e5a9dbc
Farmer's request 2
...
Farmers request having the Change filament menu item always visible in
the main menu and located after the Live Adjust Z (which disappears
after the first few printed layers).
2021-01-26 12:19:41 +01:00
DRracer
bfe93d3959
Merge pull request #2951 from DRracer/pvb-08
...
Add PVB preheat and 0.8mm nozzle presets
2021-01-26 12:09:41 +01:00
3d-gussner
ad5d068690
Update char lengths part 1
...
Fix some too long translations
2021-01-26 12:09:35 +01:00
DRracer
891f37a622
Merge pull request #2982 from DRracer/codesize
...
Reduce code size and RAM usage
2021-01-26 12:04:39 +01:00
3d-gussner
c555907a12
Remove duplicate string G-code sliced for a different printer type. Please re-slice the model again. Print cancelled.
using MSG_GCODE_DIFF_PRINTER_CANCELLED
2021-01-26 11:01:50 +01:00
3d-gussner
51d1e0bd8a
Remove duplicate string G-code sliced for a different printer type. Continue?
using MSG_GCODE_DIFF_PRINTER_CONTINUE
2021-01-26 10:42:56 +01:00
3d-gussner
7916f8b9e8
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 10:13:11 +01:00
D.R.racer
0eb7261e29
Save ~100B on menu implementation
2021-01-26 09:29:17 +01:00
3d-gussner
ba8386573a
Remove duplicate string Resume print
using MSG_RESUME_PRINT
2021-01-26 09:23:55 +01:00
3d-gussner
c6a01b3806
Remove duplicate string Reset
using MSG_RESET
2021-01-26 09:15:46 +01:00
3d-gussner
ab5aad636f
Remove duplicate string Mesh Bed Leveling
and Mesh bed leveling
using MSG_MESH_BED_LEVELING
...
Fixed few too long translations
2021-01-26 09:05:38 +01:00
DRracer
f4cee7ce84
Merge pull request #2983 from leptun/MK3_fix_sm4.h_line_ending
...
Fix sm4.h line ending
2021-01-26 08:45:07 +01:00
DRracer
bce9f8c949
Merge pull request #2984 from leptun/MK3_Serial_LF_only
...
Do not send CR on the serial line
2021-01-26 08:42:47 +01:00
DRracer
c465417f50
Merge pull request #2987 from leptun/PFW-1144-LongPathName
...
"M20 L" support. Print long filenames
2021-01-26 08:40:26 +01:00
3d-gussner
84ed0725f2
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 08:32:03 +01:00
3d-gussner
bce8501eea
Remove duplicate string Extruder
using MSG_Extruder
2021-01-26 08:31:21 +01:00
Voinea Dragos
c6588193ad
Fix some more stuff in cardreader.cpp
...
Saved 4B of flash and 60B of RAM
2021-01-26 09:25:41 +02:00
3d-gussner
ab18a3ccc3
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-26 08:24:11 +01:00
3d-gussner
530b9f50b8
Remove duplicate string Eject filament
using MSG_EJECT_FILAMENT
...
Fix few translations
2021-01-26 08:22:08 +01:00
D.R.racer
348902240e
Fix code_seen_P("fv") broken by one of the merges
2021-01-26 08:02:33 +01:00
3d-gussner
269fabc330
Remove duplicate string Cut filament
using MSG_CUT_FILAMENT
2021-01-26 07:15:46 +01:00
3d-gussner
797d8e74a3
Remove duplicate string Checking X axis
and Checking Y axis
using MSG_CHECKING_X
and MSG_CHECKING_Y
2021-01-26 07:10:57 +01:00
3d-gussner
2d1e1e4cee
Remove duplicate string Fans check
using MSG_FANS_CHECK
2021-01-25 20:13:12 +01:00
3d-gussner
d117a299f7
Remove duplicate string Fil. runouts
using MSG_FIL_RUNOUTS
2021-01-25 20:04:18 +01:00
3d-gussner
10bbd64b41
Remove duplicate string Crash
using MSG_CRASH
...
Better Italian translation, thanks to @wavexx
Fix Polish translation as it was too long for the menue and caused LCD issues.
2021-01-25 18:53:53 +01:00
3d-gussner
4878db7365
Remove duplicate string Last print failures
using MSG_LAST_PRINT_FAILURES
...
Fix too long translations in Spanish and Italian for this message
2021-01-25 18:38:35 +01:00
3d-gussner
99867c8fbd
Remove duplicate string Total failures
using MSG_TOTAL_FAILURES
2021-01-25 18:06:47 +01:00
3d-gussner
8f0a45e8a4
Remove duplicate string Steel sheets
and Total
using MSG_STEEL_SHEETS
and MSG_TOTAL
2021-01-25 17:58:51 +01:00
3d-gussner
7222cf05cf
Remove duplicate string MMU Fails
and MMU Load Fails
using MSG_MMU_FAILS
and MSG_MMU_LOAD_FAILS
2021-01-25 17:38:36 +01:00
3d-gussner
fbb3fad64b
Remove duplicate string Last print
using MSG_LAST_PRINT
2021-01-25 16:54:26 +01:00
3d-gussner
7891d12a32
Remove duplicate string Is filament loaded?
using MSG_FILAMENT_LOADED
2021-01-25 16:44:55 +01:00
3d-gussner
223f32deae
Remove duplicate string HW Setup" using
MSG_HW_SETUP`
2021-01-25 16:15:57 +01:00
3d-gussner
5c1da227fe
Merge branch 'codesize' of https://github.com/DRracer/Prusa-Firmware into DRracer_codesize
2021-01-25 16:00:46 +01:00
3d-gussner
377a59c624
Remove duplicate string Belt status
2021-01-25 15:53:31 +01:00
D.R.racer
d8917a304a
Reuse lcd_space() instead of in-place printing of spaces in a cycle
...
Saves another ~40B
2021-01-25 15:21:25 +01:00
D.R.racer
783e4bbaf9
Add lcd_putc_at (code down >150B), refactor lcd_selftest_screen_step
...
(RAM down 10B)
2021-01-25 14:58:57 +01:00
DRracer
3975415490
Merge branch 'MK3' into codesize
2021-01-25 12:43:30 +01:00
DRracer
58351fb27a
Merge pull request #2977 from DRracer/farm-patch1
...
Farmers' requests
2021-01-25 11:15:44 +01:00
D.R.racer
514321f2ce
Remove farm_no completely + reuse prusa_stat_farm_number() where
...
applicable
2021-01-25 11:09:28 +01:00
Voinea Dragos
2b3729125d
Prevent wdt reset during file listing
2021-01-25 11:46:51 +02:00
D.R.racer
c1ff6242b0
Avoid copying FW version number into RAM - use the PROGMEM string
2021-01-25 09:03:04 +01:00
Voinea Dragos
4f769f0faa
PRUSA RESET safety precaution
2021-01-25 09:58:12 +02:00
Voinea Dragos
9fa9d6b063
Move farm strings to PROGMEM
2021-01-25 09:48:17 +02:00
D.R.racer
6a62674bd8
Keep PRUSA RESET available even in non-farm mode
2021-01-25 08:43:37 +01:00
D.R.racer
98a4da571d
Merge branch 'farm-patch1' of github.com:DRracer/Prusa-Firmware into farm-patch1
2021-01-25 08:39:20 +01:00
D.R.racer
9bfada94f0
Remove commented code
2021-01-25 08:38:44 +01:00
Voinea Dragos
e8e4aabfdb
Add gcode documentation
2021-01-22 21:07:14 +02:00
Voinea Dragos
31a6270f69
Abuse \n in lcd printing instead of constantly calling other functions
...
"other functions" being lcd_set_cursor and lcd_print(char). Saves 100B of flash
2021-01-22 20:12:11 +02:00
Voinea Dragos
4d3f056b81
Fix factory reset menu rendering
2021-01-22 20:07:27 +02:00
Voinea Dragos
37c431abd9
another lcd_puts_at_P
2021-01-22 19:44:46 +02:00
D.R.racer
3ccd1b2b2b
Refactor lcd_set_cursor + lcd_puts_P -> lcd_puts_at_P
...
saves considerable amount of flash
2021-01-22 18:34:47 +01:00
Voinea Dragos
bc7d36b6ff
Fix sm4.h line ending
2021-01-22 18:57:24 +02:00
Voinea Dragos
da21916473
Change printf_P without format arguments and NL to puts_P only
2021-01-22 18:56:05 +02:00
D.R.racer
9b34789398
Cleanup reset_menu()
2021-01-22 17:54:44 +01:00
D.R.racer
90d22a376d
Remove unused vars in xyzcal.cpp
2021-01-22 17:50:08 +01:00
D.R.racer
2780a03967
Improve duplicate_Tcode_ignored
...
kudos to @leptun
2021-01-22 17:47:44 +01:00
D.R.racer
3dc85b319c
Marlin_main.cpp hacks
...
- code_seen("string") -> code_seen_P(PSTR("string")) saved >100B of RAM!
- serial print "." -> '.' saved some code
- extract commonly used string
- SERIAL_PROTOCOLLN("") -> SERIAL_PROTOCOLLN() as no argument is
necessary
2021-01-22 17:15:36 +01:00
D.R.racer
4dec171266
Reduce code by 104 bytes in xyzcal.cpp
...
Extract CLAMP_median into a non-inline function.
The extra instructions to call that function do not matter from the
speed perspective
2021-01-22 17:13:28 +01:00
D.R.racer
c710253cca
Code cleanup and size reduction and RAM optimization
...
Replase single character strings with single characters when calling
lcd_print
2021-01-22 17:11:51 +01:00
Voinea Dragos
9fda6b774d
Do not send CR on the serial line
2021-01-22 17:58:01 +02:00
DRracer
f809691003
Merge pull request #2968 from espr14/PFW-1186
...
Calibration: reduce code size PFW-1186
2021-01-22 14:05:13 +01:00
DRracer
eceb7b4e5f
Merge pull request #2981 from 3d-gussner/PFW-1140-2
...
PFW-1140 Add fan speed and position auto report
2021-01-22 13:00:23 +01:00
DRracer
defbaa6ff8
Merge branch 'MK3' into PFW-1186
2021-01-22 12:46:25 +01:00
DRracer
4c952a0a9c
Merge pull request #2962 from espr14/PFW-1178
...
Calibration: code cleaning PFW-1178
2021-01-22 12:41:24 +01:00
3d-gussner
008c6a2590
Remove defines
2021-01-22 12:26:29 +01:00
DRracer
ab59449b7c
Merge pull request #2961 from espr14/PFW-1179
...
Calibration: print skew results PFW-1179
2021-01-22 12:24:52 +01:00
DRracer
85f2c29dfe
Merge pull request #2960 from espr14/PFW-1169-3
...
Calibration: more accelerations, fix scan, more robust circle search PFW-1169
2021-01-22 12:20:35 +01:00
3d-gussner
ede3f34051
Documentation
2021-01-22 10:40:29 +01:00
Voinea Dragos
ced3d9fa77
"M20 L" support. Print long filenames
2021-01-22 11:13:44 +02:00
D.R.racer
31951fe8c9
Code refactoring
...
Motivation:
- save some RAM joining the autoreport flags into 1 byte
- encapsulate the magic of setting bit masks/features into a class with
a stable public interface
2021-01-20 11:46:25 +01:00
Voinea Dragos
70d254a1fc
Allow resetting when not in farm mode
2021-01-19 13:39:21 +02:00
Voinea Dragos
48b4bdfe8e
Make the PRUSA RESET command functional on the miniRambo
2021-01-19 13:36:08 +02:00
Voinea Dragos
542677c080
Prevent switching to serial port 1 on miniRambo and such
2021-01-19 13:11:48 +02:00
Voinea Dragos
9b847715ac
Rename F0 to FRM on the status screen
2021-01-19 13:11:25 +02:00
Voinea Dragos
3f5cfc4e61
Move the change filament button to the main menu when farm printing
...
PFW-945
2021-01-19 13:06:23 +02:00
D.R.racer
a9d8ddc89c
Farmers' requests 1
...
- remove the UI and related stuff to setting a farm number (the
communication protocol must remain intact)
- remove confirmation after print finished ("Print OK")
Both requests are highly welcome, since they allow for lowering the code
size by >1KB
PFW-963, PFW-927
2021-01-19 09:58:02 +01:00
3d-gussner
9264454d3a
Gcode M123
only if FANCHECK and TACHOs are defined
...
Gcode `M155` added parameter "C" to activate auto-report for temperatures, fans and positions
Updated doxygen
@todo Update RepRap Wiki
@todo improve code
2021-01-19 09:01:46 +01:00
espr14
735895c6bc
Use fabs
2021-01-14 16:38:34 +01:00
espr14
ca4e638ea2
Don't use extrusion in XYZ calibration
2021-01-14 13:19:30 +01:00
Alex Voinea
20c3f4cb77
Update comments
2021-01-14 12:53:12 +02:00
Voinea Dragos
dea3f23a69
PRUSA SN in eeprom
2021-01-14 11:52:22 +02:00
espr14
9867ecd3f9
Reduce unnecessary code
2021-01-13 13:59:20 +01:00
espr14
21d6f970ef
Fix build
2021-01-12 16:26:46 +01:00
espr14
f3faf651c5
Move down before scanning
2021-01-12 16:12:34 +01:00
espr14
9dceb488b6
Revert double scanning
2021-01-12 16:04:04 +01:00
espr14
546812294e
Clean serial output
2021-01-12 00:34:28 +01:00
espr14
d7507649d8
Remove degree char
2021-01-12 00:28:46 +01:00
espr14
180af46fe4
Try double height
2021-01-12 00:27:06 +01:00
espr14
333526f65d
Single skew output
2021-01-11 23:14:12 +01:00
espr14
e6e44fe188
Convert to degrees
2021-01-11 23:13:08 +01:00
espr14
b8443b00ad
Reverse reverse
2021-01-11 22:18:50 +01:00
espr14
09892bec52
Reverse
2021-01-11 18:46:56 +01:00
Yuri D'Elia
78f8f1e8f9
Remove stray serial newlines in fsensor autoload messages
2021-01-11 18:31:36 +01:00
espr14
211e5f5f37
Define DBG output
2021-01-11 17:31:26 +01:00
espr14
904a23b69e
Report calibration results
2021-01-11 17:02:41 +01:00
espr14
2e40a27460
Alignment, comments
2021-01-11 15:40:12 +01:00
DRracer
4728bf2182
Merge pull request #2875 from wavexx/raise_while_preheating
...
Raise Z while preheating when auto/[un]loading the filament
2021-01-11 07:45:54 +01:00
DRracer
1a6b6fb491
Merge pull request #1776 from wavexx/unused_tmc_defines
...
Remove an unused define
2021-01-11 07:43:44 +01:00
DRracer
ef51652e39
Merge pull request #1758 from wavexx/disable_filament_checks_in_extr_menu
...
Disable filament checks inside the Move -> Extruder menu
2021-01-11 07:42:25 +01:00
3d-gussner
a064ce4722
Add gcode M123
Tachometer value
2021-01-10 15:15:44 +01:00
D.R.racer
8a083c9970
Add PVB preheat and 0.8mm nozzle presets
...
minor features reflecting the latest announcement
Needs some 300B of CPU flash though, after 3.9.3 we need to optimize code
size again.
2021-01-08 13:52:39 +01:00
DRracer
5c3513a6cc
Merge pull request #2397 from odaki/flashair_display_ip
...
Show the FlashAir IP address
2021-01-08 12:20:12 +01:00
espr14
584177e8fd
Fix E mask
2021-01-08 10:24:36 +01:00
DRracer
f549ce690a
Merge pull request #2949 from prusa3d/MK3_3.9.3
...
Merge 3.9.3 back into MK3
2021-01-08 10:20:40 +01:00
3d-gussner
3329d34ce4
Fix doxygen issue with "^" and "|" only in one line
...
Doxygen 1.8.13 had no issues but newer doxygen version are failing
to build tables, if a line only consists of "^" and "|"
2021-01-08 09:40:13 +01:00
DRracer
0ed6b537a8
Merge branch 'MK3' into MK3_3.9.3
2021-01-07 13:27:51 +01:00
D.R.racer
603d704178
Version changed (3.9.3 build 3556)
2021-01-07 12:50:58 +01:00
3d-gussner
8a27b6abdb
Move Z up before xy home running xyz calibration
...
to prevent scratches on bed and sheet
2021-01-07 11:45:40 +01:00
espr14
2981b9e9c5
OctoPrint needs new lines
2021-01-04 14:59:12 +01:00
espr14
cc9e7b9376
Fix comments, remove unused
2021-01-04 13:01:06 +01:00
espr14
49d57ed621
Median dynamic circle
2020-12-30 17:02:31 +01:00
espr14
a9fd09ca3f
Implement median
2020-12-30 15:15:17 +01:00
espr14
13fefaa1bf
Fix typo
2020-12-30 15:01:32 +01:00
espr14
03b87ae68b
Add 8 pixel circle pattern
2020-12-30 13:08:47 +01:00
espr14
c14e725574
Fix moves
2020-12-29 18:27:33 +01:00
espr14
c2ab8785f4
Revert Manhattan
2020-12-29 17:31:34 +01:00
espr14
c1e6567461
Fix step axis coding
2020-12-29 17:17:32 +01:00
espr14
922769cefb
axis -> axes
2020-12-29 17:14:18 +01:00
espr14
a01dfe26fe
Add Manhattan movement
2020-12-29 17:13:11 +01:00
espr14
6461206e08
Fix direction setting
2020-12-29 14:19:05 +01:00
espr14
b6e78bf900
Fix direction
2020-12-29 14:08:30 +01:00
espr14
c11e8654da
Revert both directions, refactor code
2020-12-29 12:39:35 +01:00
espr14
e86ba5e26d
Scan only once
2020-12-28 16:45:39 +01:00
D.R.racer
7e02a7f118
Version changed (3.9.3-RC1 build 3555)
2020-12-26 15:45:34 +01:00
DRracer
d61cdf2b88
Merge pull request #2932 from espr14/PFW-1165-2
...
Calibration: Turn off speed optimization due to MK2.5 PFW-1165
2020-12-25 18:22:04 +01:00
espr14
80e32ce1a5
Turn off speed optimization due to MK2.5
2020-12-25 15:27:42 +01:00