Yuri D'Elia
d53eb69150
Manually cast to int when comparing against extrude_min_temp
...
Avoid the automatic conversion to float to improve code size.
2022-05-12 12:20:54 +02:00
Yuri D'Elia
ea46402e4d
Replace EXTRUDE_MINTEMP with the configurable extrude_min_temp
...
Everywhere MINTEMP is checked, use the configurable value set by M302,
not an hardcoded value.
EXTRUDE_MINTEMP is now used only as the initial default value.
Reduce the precision of extrude_min_temp to an integer to reduce the
generated code size (constant folding did in fact do the same previously
anyway). Having tenths of degrees is not necessary for this feature.
2022-05-11 20:07:38 +02:00
FormerLurker
bb33c76d2b
Fix and simplify M214 data types and default config initialization.
2022-04-28 14:36:51 +02:00
FormerLurker
623c029bfa
Code cleanup to reduce program storage
2022-04-28 14:36:51 +02:00
FormerLurker
6fc8155cbe
Add n_arc_correction and enhanced small angle sin/cos approximation.
2022-04-28 14:36:51 +02:00
FormerLurker
58d9916d54
Make suggested corrections.
2022-04-28 14:36:51 +02:00
FormerLurker
4aa5a75301
Enhance arc interpolation and add M214 for controlling arc interpolation settings.
2022-04-28 14:36:51 +02:00
Alex Voinea
d860d61513
Merge pull request #3459 from gudnimg/remove_pid_add_extrusion_rate
...
Remove unused setting `PID_ADD_EXTRUSION_RATE`
2022-04-21 14:01:50 +02:00
Guðni Már Gilbert
c62c412cc3
Remove unused setting PID_ADD_EXTRUSION_RATE
...
Even if the setting was turned on, it doesn't do anything useful.
2022-03-30 19:03:41 +01:00
Alex Voinea
159c4cf8ae
Reset acceleration rates when changing microstepping resolution
2022-03-03 22:25:48 +01:00
Guðni Már Gilbert
4a02ff3de8
Change SERIAL_PROTOCOL to SERIAL_PROTOCOLPGM in a few lines
...
Saves 12 bytes of SRAM but increases flash use by 12 bytes.
2022-02-28 11:37:13 +01:00
Alex Voinea
97c371e5e8
Make the "ln" functions no-inline.
...
Save 348B of flash
2022-02-27 20:58:56 +01:00
Guðni Már Gilbert
af36f654d1
Optimise a few uses of SERIAL_PROTOCOLLN
...
Saves 34 bytes of flash memory and reduces code by 8 lines.
2022-02-27 20:58:50 +01:00
Alex Voinea
bb56c35b87
Optimise PINDA cal status Serial print
...
"PINDA cal status:" is always printed no matter what cal_status is so we can pull that out of the conditional statment.
cal_status is also a boolean, lets just print it directly. Its a simpler code.
Saves 32 bytes of flash and 22 bytes of SRAM
Change serial messages to PGM
2022-02-27 20:58:46 +01:00
Guðni Már Gilbert
efde923e57
Purge ftostr3
...
Saves 54 bytes of Flash and 2 bytes of SRAM
2022-02-27 20:58:39 +01:00
Guðni Már Gilbert
3ab57086b1
Remove one call to dtostrf
...
I could not see any difference in the functionality when testing this locally
Changes save 818 bytes of flash memory
(I suspect this is due to dtostrf no longer being called in the firmware for MK3S?)
2022-02-27 20:57:24 +01:00
Alex Voinea
0c716d21fe
Merge pull request #3377 from leptun/MK3_fix_lang_reserved_area
...
Fix lang reserved area alignment
2022-02-25 12:36:33 +02:00
Alex Voinea
0cc364ff7a
Print busy messages while waiting for heaters
2022-02-17 17:53:02 +01:00
Alex Voinea
5499ce5931
Add MMU2 capability line
2022-02-17 17:05:17 +01:00
Alex Voinea
28a3458634
Fix crash detected message translation
2022-02-17 13:05:01 +01:00
DRracer
159c9c34bd
Merge pull request #3089 from wavexx/show_axes_during_crash
...
Show affected axes in crash detection messages
2022-02-17 09:52:19 +01:00
Alex Voinea
536395eabf
Merge pull request #3413 from leptun/MK3_fix_timer_polling
...
Make some timers LongTimer
2022-02-17 09:00:13 +01:00
Yuri D'Elia
5b6a057037
Reduce duplication and code size
2022-02-16 16:45:06 +01:00
Yuri D'Elia
35a67ad51f
Fix typo
2022-02-16 16:23:31 +01:00
Yuri D'Elia
3a00054c55
Show the axes invoved during crash detection
...
Explicitly show which axes are affected on the status line when a crash
has been detected.
When the crash recovery prompt is triggered, also show all axes which
have been affected during the detection interval (currently X, Y, or
both).
The timer detection has been simplified to match the MK3 optical
filament timeout handling, which makes more sense: a crash immediately
following a crash recovery prompt will trigger the prompt again. The
timer needs to properly expire in order to reset the crash count.
This helps crash detection tuning (and help users reporting issues with
crash detection) without having to monitor the serial line.
This currently abuses the MSG_CRASH_DETECTED message by prepending the
[X][Y] labels to the message, which is ok in english but might not
translate that well for all languages.
2022-02-16 15:47:28 +01:00
Alex Voinea
26f31743f7
Fix crashDet timer overflow handling
2022-02-16 10:06:07 +01:00
Alex Voinea
a6331d22c8
Remove ancient SNMM code in the MK3 branch
2022-02-15 15:58:33 +01:00
Alex Voinea
775c460dc5
Merge branch 'MK3' into MK3_fix_usb_timer
2022-02-15 10:36:57 +01:00
DRracer
8a1e9ea38e
Merge pull request #3397 from leptun/MK3_reset_time_remaining_on_stop
...
Fix time remaining not reset on stop print
2022-02-15 10:30:09 +01:00
DRracer
2d9a154541
Merge pull request #3247 from gudnimg/remove-ifdef-gudni
...
Remove unused ifdef `MK1BP` and `MAX_SILENT_FEEDRATE`
2022-02-15 10:27:21 +01:00
Alex Voinea
4ec8781df2
Fix usb print timer
2022-02-13 22:52:49 +01:00
Alex Voinea
5ae45d583f
Fix time remaining not reset on stop print
2022-02-13 08:52:27 +01:00
Alex Voinea
7e90047bba
Use eeprom_update_block instead of a for loop
...
Saves 32B
2022-02-12 09:41:07 +01:00
Guðni Már Gilbert
4672b6444c
Merge branch 'MK3' into remove-eeprom-func
2022-02-11 19:32:11 +00:00
Alex Voinea
426ab24c36
Let's not talk about this
2022-02-10 20:19:52 +01:00
Alex Voinea
e358cb2b78
Fix DEBUG_SEC_LANG
2022-02-10 20:19:52 +01:00
Alex Voinea
42b91a83cd
Merge branch 'MK3' into MK3_3.12_Optimizations
2022-02-10 10:36:31 +01:00
Alex Voinea
060581962c
Fix sizeof array look
2022-02-10 09:33:55 +01:00
Alex Voinea
e35b21569d
Merge pull request #3005 from wavexx/remove_mres_limits
...
Allow all microstep resolutions for all axes
2022-02-09 13:48:51 +01:00
Alex Voinea
6aaf784975
Merge pull request #3251 from gudnimg/farm-mode-setup-gudni
...
Optimize `farm_mode` initialisation in `setup()`
2022-02-09 13:48:12 +01:00
Alex Voinea
916212b597
Add ALLOW_ALL_MRES as requested in PR
2022-02-09 10:28:45 +01:00
Guðni Már Gilbert
c4f1023924
Add back second call to prusa_statistics(8) when farm_mode is enabled.
...
Adds 18 bytes of flash
2022-02-09 07:30:50 +00:00
Guðni Már Gilbert
caf496e996
Optimise FanCheck initialisation when farm mode is on
...
Saves 12 bytes of flash memory (Arduino IDE 1.8.19)
2022-02-09 07:26:34 +00:00
Alex Voinea
aab094ff4f
Merge pull request #3292 from gudnimg/fix-pinda-thermistor-build-fail
...
Fix build error if `PINDA_THERMISTOR` is not defined
2022-02-09 07:54:42 +01:00
3d-gussner
75d6942d81
Merge pull request #2836 from wavexx/remove_jerk_limits
...
Remove hard-coded X/Y jerk limits
2022-02-07 17:04:49 +01:00
Alex Voinea
d06e74dd6f
Fix Welcome message and language flashing
2022-02-05 23:44:24 +01:00
Guðni Már Gilbert
19dc05597d
Fix identation in PR
...
Also combined the if statements that check farm_mode
If farm_mode is 0xFF then we can skip the next if statment.
No change in memory footprint
2022-02-05 11:24:04 +00:00
Guðni Már Gilbert
1f3640ab26
Merge branch 'MK3_3.12_Optimizations' of https://github.com/leptun/Prusa-Firmware into MK3_3.12_Optimizations
2022-02-02 20:49:41 +00:00
Guðni Már Gilbert
43bf33e791
Optimise usage of code_value()
...
code_value() is float but in some cases we can save memory when the expected output is only 1 or 2 bytes.
Changes save 182 bytes of flash memory on my end.
2022-02-02 20:48:36 +00:00
Alex Voinea
6ce7792045
Remove "hh" in fmt where it makes no difference
2022-02-02 20:58:21 +01:00