Prusa-Firmware/Firmware
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
..
variants Move MK2 variants to obsolete 2022-02-25 11:14:55 +01:00
adc.c Change printf_P without format arguments and NL to puts_P only 2021-01-22 18:56:05 +02:00
adc.h Fix ADC index overflow 2018-07-17 17:55:04 +02:00
asm.h Simplify GETPC() 2022-02-02 21:06:58 +01:00
AutoDeplete.cpp Comment. 2019-01-04 19:56:15 +01:00
AutoDeplete.h Add filament auto deplete engine for multi-material prints with MMUv2. 2019-01-03 22:58:25 +01:00
backlight.cpp Add newline at the end of file 2020-09-15 14:56:41 +02:00
backlight.h General fixes and improvements to code 2019-10-31 19:07:20 +02:00
BlinkM.cpp Build 109 2017-11-16 22:03:36 +01:00
BlinkM.h Build 109 2017-11-16 22:03:36 +01:00
boards.h MK3 configuration files, renamed EINY to EINSY 2018-02-01 17:10:41 +01:00
bootapp.c Remove unused/broken bootapp code 2021-03-03 16:31:30 +02:00
bootapp.h Fix usage of RAMEND 2021-06-12 13:16:12 +02:00
cardreader.cpp Optimise autostart_stilltocheck variable 2022-04-09 11:10:55 +00:00
cardreader.h Optimise autostart_stilltocheck variable 2022-04-09 11:10:55 +00:00
cmdqueue.cpp Convert some more suspicious timers to LongTimer 2022-02-17 08:48:29 +01:00
cmdqueue.h Merge remote-tracking branch 'upstream/MK3' into rebase-testing-ground-v2 2022-01-30 11:43:16 +00:00
config.h Implement an online crash dumper for MK2.5 boards 2021-06-12 13:37:20 +02:00
Configuration.cpp some improvements 2019-07-10 16:29:40 +02:00
Configuration.h Remove TEMP_STAT_LEDS from firmware 2021-12-25 09:41:50 +00:00
Configuration_adv.h VERBOSE_CHECK_HIT_ENDSTOPS 2022-02-10 16:42:02 +01:00
ConfigurationStore.cpp Merge branch 'MK3' into MK3_3.12_Optimizations 2022-02-10 10:36:31 +01:00
ConfigurationStore.h Implement separate travel acceleration (M204 T) 2021-02-03 11:20:28 +01:00
conv2str.cpp LCD menu optimalization - conversion functions - source separation 2018-07-16 17:23:35 +02:00
conv2str.h LCD menu optimalization - conversion functions - source separation 2018-07-16 17:23:35 +02:00
Dcodes.cpp Simplify GETPC() 2022-02-02 21:06:58 +01:00
Dcodes.h Improve/fix D23 for M2.5/S printers 2021-06-25 08:46:55 +02:00
doxyfile Updated doxygen docs to work better with confluence. 2019-07-19 13:51:55 +02:00
eeprom.cpp remove firstrun 2022-02-04 13:27:43 +01:00
eeprom.h Remove ancient SNMM code in the MK3 branch 2022-02-15 15:58:33 +01:00
fastio.h Change arduino IO to fastio where possible 2022-01-30 11:22:43 +00:00
Firmware.ino LCD menu optimalization - LiquidCrystal_Prusa removed 2018-07-16 23:23:15 +02:00
first_lay_cal.cpp Gracefully dump the queue + fixes to fancheck 2020-11-09 21:49:56 +02:00
first_lay_cal.h Rename lay1cal_preheat() to lay1cal_wait_preheat(). 2019-09-12 00:19:20 +02:00
fsensor.cpp Remove "hh" in fmt where it makes no difference 2022-02-02 20:58:21 +01:00
fsensor.h MK3s IR sensor improvement (#2698) 2020-06-03 16:14:56 +02:00
heatbed_pwm.cpp Remove unnecessary assignment 2021-06-21 06:47:59 +02:00
la10compat.cpp Re-adjust LA10->15 conversion 2020-09-07 21:44:34 +02:00
la10compat.h Adjust E-jerk in LA10 compatibility mode 2020-02-03 15:42:27 +01:00
language.c Make the compiler align the lang reserved area to the spm page boundary 2022-02-10 20:19:52 +01:00
language.h Make the compiler align the lang reserved area to the spm page boundary 2022-02-10 20:19:52 +01:00
lcd.cpp Merge branch 'MK3' into MK3_3.12_Optimizations 2022-02-10 10:36:31 +01:00
lcd.h Fix indentation 2022-02-06 11:01:35 +01:00
le.sh make all shell scripts executable 2018-12-10 07:09:03 -07:00
macros.h More macros 2020-09-11 18:48:44 +03:00
Marlin.h Make the "ln" functions no-inline. 2022-02-27 20:58:56 +01:00
Marlin_main.cpp Change SERIAL_PROTOCOL to SERIAL_PROTOCOLPGM in a few lines 2022-02-28 11:37:13 +01:00
MarlinSerial.cpp Remove ancient SNMM code in the MK3 branch 2022-02-15 15:58:33 +01:00
MarlinSerial.h Fix typo from long ago 2022-02-04 16:28:49 +01:00
menu.cpp Merge branch 'MK3' into MK3_3.12_Optimizations 2022-02-10 10:36:31 +01:00
menu.h Cardreader progressbar code 2021-02-25 20:25:32 +02:00
mesh_bed_calibration.cpp Add static assert 2022-02-10 09:47:37 +01:00
mesh_bed_calibration.h Optimise if-statments in world2machine_clamp 2022-02-01 18:37:41 +00:00
mesh_bed_leveling.cpp Use memset instead of nested for-loop to zero a 2d array 2021-08-02 19:20:51 +00:00
mesh_bed_leveling.h Remove undefined function 2022-01-30 11:39:29 +00:00
messages.cpp Merge pull request #3089 from wavexx/show_axes_during_crash 2022-02-17 09:52:19 +01:00
messages.h Fix Welcome message and language flashing 2022-02-05 23:44:24 +01:00
mmu.cpp Remove forgotten SNMM code in M600 2022-02-24 14:02:49 +01:00
mmu.h Merge pull request #3413 from leptun/MK3_fix_timer_polling 2022-02-17 09:00:13 +01:00
motion_control.cpp Improve mc_arc() parameters 2021-07-20 09:03:50 +02:00
motion_control.h Improve mc_arc() parameters 2021-07-20 09:03:50 +02:00
optiboot_xflash.cpp optiboot_xflash comment about w25x20cl messages 2021-06-21 07:21:40 +02:00
optiboot_xflash.h Rename w25x20cl to xflash 2021-04-06 10:16:47 +02:00
pat9125.cpp TWI timeout 2022-02-17 00:05:09 +01:00
pat9125.h TWI timeout 2022-02-17 00:05:09 +01:00
pins.h Move SDA/SCL pins into pins.h for fastio compatibility 2021-01-29 17:48:59 +01:00
pins_Einsy_1_0.h Rename w25x20cl to xflash 2021-04-06 10:16:47 +02:00
pins_Rambo_1_0.h Remove ancient SNMM code in the MK3 branch 2022-02-15 15:58:33 +01:00
pins_Rambo_1_3.h Remove ancient SNMM code in the MK3 branch 2022-02-15 15:58:33 +01:00
planner.cpp Merge remote-tracking branch 'upstream/MK3' into rebase-testing-ground-v2 2022-01-30 11:43:16 +00:00
planner.h Remove maxlimit_status 2022-01-30 11:22:43 +00:00
printers.h Remove commented out defines. 2019-07-10 17:40:33 +02:00
qr_solve.cpp 3.0.6 sync 2016-08-11 10:42:53 +02:00
qr_solve.h 3.0.6 sync 2016-08-11 10:42:53 +02:00
rbuf.c T-codes for MMU_V2: initial version 2018-07-09 13:57:36 +02:00
rbuf.h T-codes for MMU_V2: initial version 2018-07-09 13:57:36 +02:00
Sd2Card.cpp Change arduino IO to fastio where possible 2022-01-30 11:22:43 +00:00
Sd2Card.h Change return types of two functions uint8_t 2022-01-30 11:39:24 +00:00
SdBaseFile.cpp Return SdBaseFile into previous state 2021-01-28 09:41:30 +01:00
SdBaseFile.h Remove temporary changes from SdBaseFile.h 2021-01-28 09:42:50 +01:00
SdFatConfig.h 3.0.6 sync 2016-08-11 10:42:53 +02:00
SdFatStructs.h 3.0.6 sync 2016-08-11 10:42:53 +02:00
SdFatUtil.cpp Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
SdFatUtil.h Introduce STACK_GUARD_MARGIN in all variants 2021-06-12 12:08:53 +02:00
SdFile.cpp SDFile - fix errorneous offset computation 2021-03-30 11:33:42 +02:00
SdFile.h Remove commented debug code 2021-02-10 11:18:59 +01:00
SdInfo.h 3.0.12-RC2 sync 2017-06-29 18:35:43 +02:00
SdVolume.cpp 3.0.12-RC2 sync 2017-06-29 18:35:43 +02:00
SdVolume.h Extract gcode filter from SdBaseFile into SdFile + optimization 2021-01-27 09:33:28 +01:00
Servo.cpp change boolean to bool 2021-07-20 08:03:17 +02:00
Servo.h 3.0.6 sync 2016-08-11 10:42:53 +02:00
sm4.c Merge pull request #1263 from metacollin/calfix 2022-02-15 09:26:42 +01:00
sm4.h Fix sm4.h line ending 2021-01-22 18:57:24 +02:00
sound.cpp Fix misleading indentation warnings by expanding tabs 2021-06-21 06:52:52 +02:00
sound.h Merge remote-tracking branch 'upstream/MK3' into rebase-testing-ground-v2 2022-01-30 11:43:16 +00:00
speed_lookuptable.cpp Move speed lookup defs into a separate source 2019-05-24 17:08:32 +02:00
speed_lookuptable.h Fix MUL24x24R24 comment 2022-02-09 00:26:46 +01:00
spi.c New SPI (do not use Arduino SPI class) 2018-03-29 17:42:41 +02:00
spi.h New ML support - W25X20CL external spi flash support 2018-06-08 00:20:28 +02:00
static_assert.h static_assert - portable solution compatible with C++98 2018-09-27 19:59:29 +02:00
stepper.cpp Remove ancient SNMM code in the MK3 branch 2022-02-15 15:58:33 +01:00
stepper.h Pack endstop flags 2022-02-04 15:24:43 +01:00
stk500.h Added support for a secondary boot loader, based on the OptiBoot project, 2018-06-14 15:13:21 +02:00
swi2c.c Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C 2021-01-29 18:28:55 +01:00
swi2c.h SWI2C for PAT9125 simplified/optimized 2018-07-12 17:55:38 +02:00
swspi.cpp PAT9125 I2C, hardware SG homing 2017-08-17 15:23:34 +02:00
swspi.h PAT9125 I2C, hardware SG homing 2017-08-17 15:23:34 +02:00
system_timer.h ALTFAN implementation (#2692) 2020-06-01 17:58:15 +02:00
temperature.cpp Fix usb print timer 2022-02-13 22:52:49 +01:00
temperature.h Merge remote-tracking branch 'upstream/MK3' into rebase-testing-ground-v2 2022-01-30 11:43:16 +00:00
thermistortables.h Implement MIN/MAX AMBIENT safety checks 2020-08-01 17:38:10 +02:00
Timer.cpp Fix Timer_test broken by conditional translation for SYSTEM_TIMER_2. 2019-01-28 19:29:31 +01:00
Timer.h Code refactoring 2021-01-20 11:46:25 +01:00
timer02.c split timer0 and timer2 initialization. Move timer2 init early 2021-01-31 17:18:32 +02:00
timer02.h split timer0 and timer2 initialization. Move timer2 init early 2021-01-31 17:18:32 +02:00
TimerRemaining.h Fix Timer_test broken by conditional translation for SYSTEM_TIMER_2. 2019-01-28 19:29:31 +01:00
tmc2130.cpp Remove "hh" in fmt where it makes no difference 2022-02-02 20:58:21 +01:00
tmc2130.h Scale extruder motor current linearly with speed. (#2813) 2021-04-23 16:06:28 +02:00
tone04.c Merge remote-tracking branch 'upstream/MK3' into MK3_PAT9125_I2C 2021-01-29 18:28:55 +01:00
tone04.h ALTFAN implementation (#2692) 2020-06-01 17:58:15 +02:00
twi.cpp Make twi timer local to the wait function 2022-02-17 09:22:18 +01:00
twi.h TWI timeout 2022-02-17 00:05:09 +01:00
uart2.c Change printf_P without format arguments and NL to puts_P only 2021-01-22 18:56:05 +02:00
uart2.h MMU - communication, check after start, code cleaning 2018-08-07 20:37:59 +02:00
ultralcd.cpp Purge ftostr3 2022-02-27 20:58:39 +01:00
ultralcd.h Merge pull request #3089 from wavexx/show_axes_during_crash 2022-02-17 09:52:19 +01:00
uni_avr_rpi.h Revert "Revert "Save 80B of flash and 8B of RAM and fix compiler warning:"" 2018-07-23 13:35:38 +02:00
util.cpp Correctly read FW_VERSION_NR array from progmem 2021-06-28 06:36:26 +02:00
util.h M552 - Printer IP address 2021-02-02 13:21:16 +02:00
vector_3.cpp 3.0.6 sync 2016-08-11 10:42:53 +02:00
vector_3.h 3.0.6 sync 2016-08-11 10:42:53 +02:00
xflash.c xflash: add xflash_multipage_program and documentation 2021-06-08 15:25:16 +02:00
xflash.h xflash: add xflash_multipage_program and documentation 2021-06-08 15:25:16 +02:00
xflash_dump.cpp Simplify GETPC() 2022-02-02 21:06:58 +01:00
xflash_dump.h xfdump: simplify stack debugging (sample pc+sp) 2021-06-17 01:29:25 +02:00
xflash_layout.h Make layout static regardless of what is enabled 2022-02-17 09:34:09 +01:00
xyzcal.cpp Implement an online crash dumper for MK2.5 boards 2021-06-12 13:37:20 +02:00
xyzcal.h Calibration: detect biased PINDA and retry calibration 2021-03-12 05:04:49 +01:00