157 Commits (e3da86fb452c1f8239033224976033d43853f4e3)

Author SHA1 Message Date
Scott Lahteine 356410dcfc Move crc16 function to libs 6 years ago
Robby Candra 5515f88452 Clarify SD longname string size (#14148) 6 years ago
Scott Lahteine d3bb5b69ba Apply NOLESS/NOMORE 6 years ago
Tanguy Pruvot d7b0369e39 STM32: Fix SD EEPROM emulation conflict (#14012) 6 years ago
Scott Lahteine ad4ffa1d2f
Use C++ language supported 'nullptr' (#13944) 6 years ago
Ludy f96eaad1ea Unused variable cleanup (#13917) 6 years ago
Robby Candra 79955f0c89 Fix PLR file delete bug (#13860) 6 years ago
Robby Candra c369477cb0 Fix bug: diveToFile breaks M23 (#13865) 6 years ago
Msq001 455ee23499 Fix, improve Power Loss Recovery (#13703)
- Save and restore workspace offsets
- Add retract and purge (hidden) options
- Always restore axis relative modes
- Use added `G92.9` to do position restores
6 years ago
Scott Lahteine 20a41e2f7b SDCARD_RATHERRECENTFIRST with SDCARD_SORT_ALPHA 6 years ago
Robby Candra a3f67acd6d Fix Power Loss Recovery file delete (#13522) 6 years ago
Scott Lahteine b376c7e374 Group DISABLED items 6 years ago
Scott Lahteine 49cf92dc36
Extended condition macros (#13419)
Allow `ENABLED`, `DISABLED`, `PIN_EXISTS`, and `BUTTON_EXISTS` to take multiple arguments. Also add:
- Alias `ANY(...)` for `!DISABLED(...)`
- Alias `ANY_PIN(...)` for `PIN_EXISTS(a) || PIN_EXISTS(b) ...`
- Alias `EITHER(A,B)` for `ANY(...)`
- Alias `ALL(...)` and `BOTH(A,B)` for `ENABLED(...)`
- `NONE(...)` for `DISABLED(...)`
6 years ago
Scott Lahteine cfdb38eda4
Allow SERIAL_ECHOPAIR to take up to 12 pairs (#13311) 6 years ago
Scott Lahteine 2212da453a
Distinguish between analog/digital auto fans (#13298) 6 years ago
Scott Lahteine fa236e9718 General cleanup ahead of L64XX 6 years ago
Scott Lahteine 2c10222e87 card.transfer_port => transfer_port_index 6 years ago
Chris Pepper 4ab433d391 Fix binary protocol with one serial port (#13270)
- The `sdcard.transfer_port` variable is Marlin's internal serial port index, not the physical serial port number.
- Added packet number to "ok" response so hosts don't need to wait for the ACK.
- Renamed feature to `BINARY_FILE_TRANSFER`, as the speed up is only consequential to the ability to transfer binaries over serial.
6 years ago
Scott Lahteine e15354e387
Simplify serial port redirect (#13234) 6 years ago
Scott Lahteine 3a1b6fe8c1 Coding standards 6 years ago
Scott Lahteine c2b90c44e4 Prettify some code comments 6 years ago
Scott Lahteine 0feeef2604 Update copyright in headers 6 years ago
Scott Lahteine ce563d7c2e Various general cleanups
Mostly from the L6470-oriented PR
6 years ago
Scott Lahteine 712e23c383 Fix up some whitespace 6 years ago
InsanityAutomation a403d9a50c Improve menu pause / resume (#12876) 6 years ago
Scott Lahteine fb8111553e getStatus => report_status 6 years ago
jmz52 d372e7e477 SDIO support for STM32F1 (#12782) 6 years ago
Marcio Teixeira 60cb36bef3 Misc. improvements (#12747)
* Make ExtUI respect MAXTEMP limits
  - Temperatures are now clamped by MAXTEMP limits rather than arbitrary values.
* Speed up USB init, add status
  - Speed up USB initialization
  - Show status message if init failed
* Enable status messages for EXTENSIBLE_UI
* Adjust max limit to MAX_TEMP - 15
* Misc. tweaks to formatting, const, etc.
6 years ago
Scott Lahteine 18fedafbc5 Refresh screen on SD Init 6 years ago
Scott Lahteine c986239837
A single SERIAL_ECHO macro type (#12557) 6 years ago
Scott Lahteine 03ef2d6c82
Fix "paused" message and M125 called by M25 (#12551) 6 years ago
Ludy e98d195901 Remove extra declarations in cardreader.cpp (#12520) 6 years ago
Scott Lahteine 643e0066a0 Followup to #12451 6 years ago
Marcio Teixeira c1e17037e5 Various fixes for MarlinUI and ExtUI (#12439) 6 years ago
Scott Lahteine 66580f32c2
Make CardReader class static (#12451)
* Make CardReader a static class
* Make CardReader flags into bitfields
6 years ago
Scott Lahteine d97e31db4c
Optimize Power-Loss Recovery (#12440) 6 years ago
Scott Lahteine a0c795b097
Encapsulate common display code in a singleton (#12395)
* Encapsulate common LCD code in a singleton
* Depend more UBL code on UBL_DEVEL_DEBUGGING
  - Since most users don't need the debugging on at all times, this helps reduce the default build size for UBL by over 2K, a little closer to fitting on 128K boards.
6 years ago
Scott Lahteine 471f403a67 Reduce code size with plain inlines 6 years ago
Scott Lahteine 4f72e041f2 Use card.stopSDPrint() for completeness 6 years ago
Scott Lahteine f5eab912ed
Apply #pragma once, misc cleanup (#12322)
* Apply #pragma once in headers
* Adjust some thermistors formatting
* Misc cleanup and formatting
6 years ago
Scott Lahteine 42f8b6c530
Make M125 work with SDSUPPORT (#12289) 6 years ago
Scott Lahteine b5d7f69b51 Followup to #12249 6 years ago
Chris Pepper 66d44c72c3 Add fast binary file transfer to SD card option (#12249) 6 years ago
Scott Lahteine f9b80e7217 Make getfilename_sorted standard for listings 6 years ago
Marcio Teixeira 1a00d1bdaf Add pullup to USB interrupt line
- A pullup on the INT pin is required when the pin is level-active
6 years ago
Ludy 44369d536a Use millis_t where needed (#12152) 6 years ago
TheSFReader 1fb9b299d4 Add M524 to abort SD printing (#12155) 6 years ago
Scott Lahteine d26d9d5b81 Tweak IS_SD_INSERTED 6 years ago
Scott Lahteine c6a5c74208 Add parentheses to SD macros 6 years ago
Marcio Teixeira 71e19baf69 Fix kill => disable_all_heaters => print_job_timer.stop (#12146)
- Remove `print_job_timer.stop()` from `disable_all_heaters`
- Call `print_job_timer.stop()` for relevant `disable_all_heaters()`.
- Split up `kill()` for watchdog interrupt safety
6 years ago
Marcio Teixeira 5b7dd553d3 Fix sd_mmc_spi_mem capacity; clean up USB code (#12134)
- Fix an error in the return value of `sd_mmc_spi_read_capacity` which was causing the host OS to read beyond the last sector in the card.
- Clean up the USB flashdrive code and add better debugging.
6 years ago
Scott Lahteine 9bf5d4331c Clear up some compiler warnings 6 years ago
Marcio Teixeira 2067619a26 Add USB_FLASH_DRIVE_SUPPORT 6 years ago
Scott Lahteine 3019713402 Reorganize some enums 6 years ago
Scott Lahteine 065e9c3d66 Add card.longest_filename method 7 years ago
Scott Lahteine d05e832f29 Add STM32F1 support for SD-based EEPROM 7 years ago
Scott Lahteine 8c0ec81a19 Followup to #11187 7 years ago
Scott Lahteine 1a0f4dedad
Fix and improve POWER_LOSS_RECOVERY (#11187) 7 years ago
Scott Lahteine 4b2af6ab48 Minor patches to POWER_LOSS_RECOVERY 7 years ago
Scott Lahteine fbf1c9b496
Fix and tweak POWER_LOSS_RECOVERY (#11151) 7 years ago
Giuliano e970e429b6 [2.0.x] Fix null check in lsDive (#10978) 7 years ago
Scott Lahteine c2bdbdffaa Prevent a buffer overflow in diveToFile
Co-Authored-By: akunt
7 years ago
Scott Lahteine 8b44745bc7
Clean up and consolidate SD-related code (#10831) 7 years ago
etagle a11eb50a3e Refactor and optimize Stepper/Planner
Better encapsulation and considerably reduce stepper jitter
7 years ago
Scott Lahteine 306f0f2135
Move Stepper::synchronize to Planner (#10713)
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
7 years ago
Scott Lahteine d1b619be52 Standardize some hexadecimals 7 years ago
Scott Lahteine 05fca752d6 Clean up autostart handling 7 years ago
Scott Lahteine 11ab017dd0 Creality3D Power-Loss Recovery 7 years ago
Marcio Teixeira 2efc072fdb Clear progress bar on completion (#10333)
Fix #10330
7 years ago
Bob-the-Kuhn 902c885782 Switch to TMC2130 compatible hardware SPI & misc (#10299) 7 years ago
Eduardo José Tagle 97e8a6ebd9 Various fixes for DUE... (#10152)
- Watchdog reset during SD Card initialization.
- Move `DebugMonitor` to `DebugMonitor_Due.cpp`.
- Since the watchdog is enabled on boot do extra resets during init.
- Have `thermalManager` do watchdog reset before its ISR starts to prevent reset.
- Ensure that timers are stopped before reprogramming them to address tone issues.
- Improve SAM3XE reset when reflashed through the native port.
7 years ago
TheSFReader 2e43438e0c Add C parameter to M27 to include the long filename
In answer to #10001

Add an option to retrieve the currently open file name (long filename if possible).
7 years ago
Scott Lahteine 2168d6ac25 Allow NULL prepend in lsDive 7 years ago
Scott Lahteine 22a017a856
Rebuild SD file sort array on Stop SD Print (#9976)
Thanks Chuck Hellebuyck.
7 years ago
TheSFReader eb079959fb Report sd card progress [FR] #9751 (#9832)
* SD Status auto-report feature
Feature Request #9751
7 years ago
Scott Lahteine 02474a321a Fix SDSUPPORT (and indentation)
Based on https://github.com/MarlinFirmware/Marlin/issues/8746#issuecomment-368471901 by @benlye
7 years ago
Scott Lahteine e749945317
Un-pause print on cancel (#9780) 7 years ago
GMagician 6d4bc9a1f8 [2.0.x] Fix SD wrong filename list (#9342)
If last file in directory has short filename and is preceded by a deleted long file name. SD menu will wrongly report long deleted file name as last entry
7 years ago
Scott Lahteine 2bea1bda56 Move more strings to PROGMEM 7 years ago
Scott Lahteine 382a5e3318 Clean up trailing whitespace 7 years ago
GMagician 6667a916a4 Indentation fix 7 years ago
GMagician be717b3c07 Save some program memory
This will save some program memory with no speed lose
7 years ago
GMagician f37c64ee5b Fix unsupported CMD59
It seems that some SD cards don't support CRC_ON_OFF command. This fix will permit to use also these cards but leaving CRC check active on the system
7 years ago
Thomas Moore f7efac57b7 Multi-host support 7 years ago
Thomas Moore 8afc4f8d9d Fix UBL compilation warnings 7 years ago
Scott Lahteine 50366b00d5 Tweak cleaning buffer / SD finished command 7 years ago
etagle 498ea7512a Exposed SDCard interface to the public, to USB MSD is able to read/write sectors on the SD card 7 years ago
etagle 9aff55ed1f Backported latest improvements and fixes from the SdFat liibrary to our own version. This includes support for CRC7 validation on commands and also, made sure that even if using software SPI implementations, SD card speed is properly adjusted when transitioning from INITIALIZATION to DATA TRANSFER mode. ALL HALs implement spiInit, even in SW SPI mode, and we NEED this change to improve 25x the transfer speed of the SD card and allow implementations of USB MSD 7 years ago
Scott Lahteine 8b12371e45 Change some hex case 7 years ago
Scott Lahteine b634bfe1b1 Tweak to readDir code 7 years ago
Scott Lahteine f90c075d1f SD Menu patches 7 years ago
Scott Lahteine e0d367f1fb Fix M32 P subroutine handling 7 years ago
Scott Lahteine 9f8b4c5ee8 Patch SD lib files for readability 7 years ago
Scott Lahteine 9f89b5d876 Fix for MAX_VFAT_ENTRIES sanity check 7 years ago
Scott Lahteine 2cdde08339 Apply items specified in code review
Followup to #8122
7 years ago
Bob-the-Kuhn b7a66742dd tested
add sort alpha section to other LPC1768 boards
7 years ago
Scott Lahteine 8949c8c0a5 Move SD_REPRINT_LAST_SELECTED_FILE to ultralcd.cpp 7 years ago
Roxy-3D 3f5f39576b Reprint option for last SD Memory card file (#8106)
* Re-Print of same SD Memory Card file with single click

* Re-Print of same SD Memory Card file with single click
* This is the bugfix-v2.0.0 version of  https://github.com/MarlinFirmware/Marlin/pull/8104
7 years ago
Thomas Moore 9e699811d2 Make LPC1768 pinmapping not specific to Re-ARM (#8063)
* Merging early because of build failures.  See #8105

* Make LPC1768 pinmapping not specific to Re-ARM

* Add HAL_PIN_TYPE and LPC1768 pin features

* M43 Updates

* Move pin map into pinsDebug_LPC1768.h

* Incorporate comments and M226

* Fix persistent store compilation issues

* Update pin features

* Update MKS SBASE pins

* Use native LPC1768 pin numbers in M42, M43, and M226
7 years ago
Scott Lahteine 3d2b2eb1ca Prevent SDCARD_SORT_ALPHA from exploding 7 years ago