Alex Voinea
a4887b542f
Merge pull request #3467 from gudnimg/autostart_stilltocheck-optimisation
...
Optimise `autostart_stilltocheck` variable
2022-04-21 13:57:02 +02:00
Alex Voinea
453e2f102a
Merge pull request #3474 from leptun/MK3_xflash_upload_screen
...
XFlash upload message
2022-04-21 13:52:47 +02:00
Alex Voinea
b5f6bbb2c3
XFlash upload message
2022-04-15 12:37:51 +02:00
Guðni Már Gilbert
15b41e7348
Optimise autostart_stilltocheck variable
...
Make the variable static within the checkautostart function.
When the function is called for the first time autostart_stilltocheck
is set to true and will continue to live after the function is exited.
After it is set to false within checkautostart() it will continue to be
false forever.
Using static this way is more efficient than using a global variable
Saves 6 bytes of flash and 1 byte of SRAM
2022-04-09 11:10:55 +00:00
Yuri D'Elia
9bb8797b60
update_eeprom: Read correctly both old/new address prefix sizes
...
Be less strict in the address size. Support both the legacy 2 and the
new 3 byte address in the output.
2022-03-30 09:36:46 +00:00
3d-gussner
b3532749ff
Merge pull request #3451 from 3d-gussner/MK3_Translation_Maintainers
...
Update: Swedish active
2022-03-24 10:56:16 +01:00
3d-gussner
c71637107c
Swedish active
...
Norwegian added but inactive
2022-03-24 05:34:54 +01:00
Alex Voinea
56cb8cbc63
Merge pull request #3432 from leptun/MK3_3.12_Optimizations_PR3
...
memory and flash optimizations for 3.12 PR3
2022-02-28 13:16:41 +02: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
Alex Voinea
8e85242c8f
Temperature selection is int16_t. Use sprintf for PID start command.
...
Saves 90B of flash and 2B of ram
2022-02-27 20:57:24 +01:00
Guðni Már Gilbert
6d98e99356
Use sprintf_P for M301 instead of ftostr32
...
Also fixed indentation of if statement
Saves 248 bytes of flash
2022-02-27 20:57:24 +01:00
Guðni Már Gilbert
0e6ff38b61
Optimise strcpy calls to use strcpy_P
...
Saves 24 bytes of SRAM
2022-02-27 20:57:24 +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
6e15df6a4e
Merge pull request #3430 from leptun/MK3_MK2_obsolete
...
Make the MK2 variants obsolete in the MK3 branch
2022-02-25 13:04:39 +02: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
a617025d85
Move MK2 variants to obsolete
2022-02-25 11:14:55 +01:00
Alex Voinea
aba0088b4b
Remove MK2 builds from travis build
2022-02-25 11:14:25 +01:00
Alex Voinea
ce7cccab80
Merge pull request #3417 from leptun/MK3_temperature_busy_messages
...
Print busy messages while waiting for heaters
2022-02-25 12:03:23 +02:00
Alex Voinea
e0877db707
Merge pull request #3428 from leptun/MK3_remove_forgotten_SNMM_code
...
Remove forgotten SNMM code in M600
2022-02-24 17:04:34 +02:00
3d-gussner
3ee62d01ad
Merge pull request #3422 from 3d-gussner/MK3_build_IDE1819_AB105
...
PFW-1298: Use PF-build-env 1.0.7
2022-02-24 15:57:41 +01:00
Alex Voinea
50f4981a06
Remove forgotten SNMM code in M600
2022-02-24 14:02:49 +01:00
3d-gussner
3f3915304e
Limit atmegaMK404 boards mem to 8,16,32
2022-02-24 11:42:23 +01:00
3d-gussner
98fa74a0d7
Change to Arduino IDE 1.8.19 and Arduino boards 1.0.5
...
Fix DEV_STATUS to set correctly on RC/BETA/ALPHA/DEVEL
Fix atmegaMK404 Board mem and flash modifications
2022-02-24 10:44:37 +01:00
3d-gussner
0c6d41eda7
Switch to prusa3d url
2022-02-24 09:09:15 +01:00
3d-gussner
ea6ec78553
Use PF-build-env 1.0.7
...
- Based on Arduino IDE 1.8.19
- with Arduino_boards 1.0.5
2022-02-21 12:06:02 +01:00
3d-gussner
09e052ebca
Merge pull request #3420 from gudnimg/fix-finda-timer
...
Fix FINDA timer
2022-02-21 09:57:12 +01:00
Guðni Már Gilbert
227b6b4b03
Fix FINDA timer
...
We want to set the FINDA state IF the timer has not expired.
It is helpful to see why by looking at the commit which broke
this 802b8860c8
Without this fix my FINDA sensor just shows N/A. But after this commit is works perfectly.
2022-02-20 12:28:40 +00:00
Alex Voinea
0cc364ff7a
Print busy messages while waiting for heaters
2022-02-17 17:53:02 +01:00
Alex Voinea
b654217a5b
Merge pull request #3416 from leptun/MK3_MMU2_capability_line
...
Add MMU2 capability line
2022-02-17 17:44:39 +01:00
3d-gussner
8eff9e35da
Merge pull request #3400 from 3d-gussner/MK3_Translation_Maintainers
...
Update Maintainers
2022-02-17 17:34:04 +01:00
Alex Voinea
e98bb086cc
Merge pull request #3414 from leptun/MK3_xflash_partitioning
...
xflash partitioning
2022-02-17 17:10:10 +01:00
Alex Voinea
5499ce5931
Add MMU2 capability line
2022-02-17 17:05:17 +01:00
Alex Voinea
ae19f1bc0d
Merge pull request #3415 from leptun/MK3_fix_crashDetected_translation
...
Fix crash detected message translation
2022-02-17 16:01:26 +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
52b464688f
Make layout static regardless of what is enabled
2022-02-17 09:34:09 +01:00
Alex Voinea
eae6b4e911
Merge pull request #3412 from leptun/MK3_TWI_timeout
...
Hardware TWI timeout
2022-02-17 09:26:47 +01:00
Alex Voinea
1e0f414d41
Make twi timer local to the wait function
2022-02-17 09:22:18 +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
Alex Voinea
91c71da810
Convert some more suspicious timers to LongTimer
2022-02-17 08:48:29 +01:00
Alex Voinea
0172cbdf8b
Extra TWI disable code. Not used yet.
2022-02-17 00:05:31 +01:00
Alex Voinea
6351d29d70
TWI timeout
2022-02-17 00:05:09 +01:00
Alex Voinea
94eb60eade
Merge pull request #3408 from leptun/MK3_remove_SNMM
...
Remove ancient SNMM code in the MK3 branch
2022-02-16 18:37:05 +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