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
f25bddce35
Simplify GETPC()
2022-02-02 21:06:58 +01:00
Alex Voinea
6ce7792045
Remove "hh" in fmt where it makes no difference
2022-02-02 20:58:21 +01:00
Guðni Már Gilbert
146b008186
Remove redundant variable farm_status
...
It is unused and status_number variable can be used instead.
2022-02-02 18:37:55 +00:00
Guðni Már Gilbert
459570ab66
Change prusa_stat_printerstatus parameter to uint8_t
...
Also changes status_number global variable to uint8_t
Changes save 80 bytes of flash and 1 byte of SRAM (Arduino IDE 1.8.19)
2022-02-02 18:35:52 +00:00
3d-gussner
f2fdbb3485
Merge branch 'MK3_improve_translations' of https://github.com/3d-gussner/Prusa-Firmware into MK3_improve_translations
2022-02-02 17:24:18 +01:00
3d-gussner
ce6b92052c
Update replace Czech non aA-zZ characters
2022-02-02 17:23:31 +01:00
3d-gussner
fbe33ed28f
Add POEdit `.mo`and MAC generated `.DS_Store`
2022-02-02 17:23:31 +01:00
3d-gussner
f290039dff
Add Hungarian replacement
...
Fix changed chars.
2022-02-02 17:23:31 +01:00
3d-gussner
c3347dd2cb
Improve language scripts
...
- Add German `äöüß` support
- Add/improve checks
- Check for syntax errors
- Output for translators
- gitignore more temporary files
2022-02-02 17:23:31 +01:00
3d-gussner
256c3f453b
PF-build.sh:
...
- Add sort of variants. Request from @leptun
- Add Arduino IDE 1.8.19 as an option
- Allow upper and lower case. Request from @TojikCZ
MK404-build.sh:
- Allow upper and lower case. Request by @TojikCZ
- Add update option to release OR devel
2022-02-02 17:23:31 +01:00
3d-gussner
92ec7d3d24
Add some documentation
...
WIP
2022-02-02 17:23:31 +01:00
3d-gussner
a7839a6cc6
Test Travis with focal Ubuntu20.04 LTS
2022-02-02 17:23:31 +01:00
3d-gussner
1abd2be96d
Syntax check `lang_en.txt`
...
Display correct line having issues
2022-02-02 17:23:31 +01:00
3d-gussner
86235259a3
Add syntax checks
2022-02-02 17:23:31 +01:00
3d-gussner
2a4e90bd93
Update replace Czech non aA-zZ characters
2022-02-02 17:22:17 +01:00
D05S
183eaf80ec
Created and updated files from new po
2022-02-02 15:05:25 +01:00
D05S
058c75f3ec
Delete mac files
2022-02-02 14:51:02 +01:00
D05S
0f76c05a36
test
2022-02-02 14:46:48 +01:00
D05S
45c121c7a4
\x0a edit
...
\\x0a to \x0a
2022-02-02 14:16:01 +01:00
D05S
d19fa38afe
Update cs.po
...
memory optimization
2022-02-02 12:29:17 +01:00
3d-gussner
cbae08991c
Add POEdit `.mo`and MAC generated `.DS_Store`
2022-02-02 08:49:35 +01:00
3d-gussner
3b82333fcb
Merge pull request #3344 from AttilaSVK/MK3_3.11.0
...
New translation - Hungarian
2022-02-02 08:15:53 +01:00
Guðni Már Gilbert
e525bcb7f5
Optimise lcd_selftest_screen input parameters and return type
...
* _progress_scale is max 3 so it can be uint8_t
* _progress is max 6 so it can be uint8_t
* Change _delay type to uint16_t to be explicit
Changes save 102 bytes of flash memory (Arduino IDE 1.8.19)
2022-02-01 18:57:43 +00:00
Guðni Már Gilbert
8681d84c44
Merge branch 'MK3_3.12_Optimizations' of https://github.com/leptun/Prusa-Firmware into MK3_3.12_Optimizations
2022-02-01 18:37:57 +00:00
Guðni Már Gilbert
53dfcf9d6f
Optimise if-statments in world2machine_clamp
...
Only one of the statements can be true: tmpx < X_MIN_POS or tmpx > X_MAX_POS.
So we can be a little bit smarter here and skip the second if statement if the first was true.
This saves 6 bytes of flash memory and potential some clock cycles
2022-02-01 18:37:41 +00:00
Alex Voinea
aec2db7683
Optimize MUL8x16R8
2022-02-01 18:12:13 +01:00
Prime1910
9e36c80963
Updated po files
2022-02-01 07:05:53 -08:00
Prime1910
77cba57eb6
Removed identical translations
2022-02-01 06:59:38 -08:00
Prime1910
0928d28def
Created Croatian lang file from po file
2022-02-01 06:46:43 -08:00
Alex Voinea
b7806bf25f
Crash if pullups get enabled on the thermistor inputs
2022-02-01 12:34:07 +01:00
D05S
67a470e0ab
Czech translation fix
...
translated missing parts
2022-02-01 06:55:45 +01:00
Guðni Már Gilbert
c0e7e17fc3
Fix type of nrFiles
2022-01-30 13:07:09 +00:00
Alex Voinea
1523194d3b
Fix build (merge conflict)
2022-01-30 13:18:07 +01:00
Alex Voinea
67e6361ff1
Fix temperature runaway variable types (merge conflict)
2022-01-30 13:16:05 +01:00
Guðni Már Gilbert
9bf45773f9
Merge remote-tracking branch 'upstream/MK3' into rebase-testing-ground-v2
2022-01-30 11:43:16 +00:00
Alex Voinea
0f5312f927
Merge pull request #8 from gudnimg/remove-unused-var-gudni
...
Remove unused variables
Shrink integer types where possible
2022-01-30 11:39:29 +00:00
Alex Voinea
aae562e480
Fix G81 for loop
2022-01-30 11:39:29 +00:00
Guðni Már Gilbert
c081e1a5ae
Loop index can be unsigned
...
Saves 4 bytes of flash memory
2022-01-30 11:39:29 +00:00
Guðni Már Gilbert
49693a9fb3
Remove undefined function
...
No change in memory footprint.
2022-01-30 11:39:29 +00:00
Alex Voinea
d69b8daa72
Merge pull request #7 from gudnimg/gudni-PR2
...
Save some memory by using memset and inlined memcpy
2022-01-30 11:39:28 +00:00
Guðni Már Gilbert
c705d4aa10
Change set_z() parameters to uin8_t
...
Saves 24 bytes of flash
2022-01-30 11:39:28 +00:00
Guðni Már Gilbert
581188ce2c
Fix an issue found in code review
...
Unfortunately this increases flash usages by 212 bytes (same usage as in current release) It seems it is most memory effcient to use int16_t (int). int8_t requires more memory.
2022-01-30 11:39:28 +00:00
Guðni Már Gilbert
f8847edca6
Remove one unused variable
...
Saves 1 byte of SRAM
The variable is only assigned a value but is never used.
2022-01-30 11:39:28 +00:00
Guðni Már Gilbert
d8723c0eac
Use code_value_uint8() in get_command()
...
The if statement is simplified as the value is never negative
and we can get rid of one variable
Saves 12 bytes of flash memory
2022-01-30 11:39:27 +00:00
Guðni Már Gilbert
ac049c7e3c
Use code_value_short() in get_command()
...
Same code but uses a defined function
Saves 28 bytes of flash memory
2022-01-30 11:39:27 +00:00
Guðni Már Gilbert
052ecc3782
G81: Change for loop variables x and y to uint8_t
...
Saves 198 bytes of flash, that's crazy
2022-01-30 11:39:27 +00:00
Guðni Már Gilbert
7787f17139
Smaller code in G28
...
Replace two blocks of code with already defined functions.
Change saves 100 bytes of flash memory and 11 lines of code.
2022-01-30 11:39:27 +00:00
Guðni Már Gilbert
b835f31904
Remove variable move_menu_scale
...
The variable is just set to 1.0 and is never modified, I also
removed the function lcd_move_menu_1mm()
Changes save 96 bytes of flash memory and 4 bytes of SRAM
2022-01-30 11:39:27 +00:00
Guðni Már Gilbert
a940c364c9
Create enum class for heating_status variable
2022-01-30 11:39:27 +00:00