144 Commits (47c19aa2b359247cc1918bdd16079bc022223176)

Author SHA1 Message Date
Scott Lahteine d94e077901 Apply HAS_HOTEND_OFFSET where needed 6 years ago
Scott Lahteine e52bcc9408 Limit top bed temp to BED_MAXTEMP - 10
The chances of a 10° overshoot is pretty minimal.
6 years ago
Tobias Frost 60e82e3929 Send notifications to ExtUI for M0/M1 (#13344)
- Send notifications to ExtUI for M0/M1

- wait_for_user can be non-volatile (not changed by interrupt)
  C / C++ compilers don't optimize away reads of non-volatile variables when a function call is used between accesses, because *any* variable could be changed by the function call. Since `wait_for_user` can't be changed without a function call, it should be non-volatile so the compiler can optimize away cases where it is read more than once without an intervening function call.
6 years ago
Tobias Frost afbec5ff7e Have ExtUI::getProgress use ui.get_progress (#13328) 6 years ago
Tobias Frost 7ce13a6ec1 Fix a print_job_timer compile error (#13304) 6 years ago
Tobias Frost 57afd0ab37 Fix range check bug in FileList::seek() (#13286)
When `count()` returns 0, `pos > (count()-1)` will always yield `true` due to integer underflow.
6 years ago
Scott Lahteine 7cf9b93f26 Add HAS_FILAMENT_SENSOR ahead of 12962 6 years ago
InsanityAutomation 7f1b69b0c8 Add HOST_PROMPT_SUPPORT (#13039) 6 years ago
Scott Lahteine 0feeef2604 Update copyright in headers 6 years ago
Marcio Teixeira 113af46a1b Add ExtUI methods to babystep probe/nozzle offsets (#12590) 6 years ago
Marcio Teixeira f214118e45 Action to notify host of filament runout. (#12817) 6 years ago
Marcio Teixeira 54fdf57b8c ExtUI: Fix fan wrapping around from 0 to 100 (#12987) 6 years ago
Marcio Teixeira f4c16e683b Follow up fixes to #12884 (#12940) 6 years ago
teemuatlut e6805582a6 M569 to change stepping mode. Add new TMC section to LCD. (#12884) 6 years ago
Scott Lahteine eb78aed863
Rename LCD menus according to variable types (#12892) 6 years ago
InsanityAutomation 082f6a27de ADAPTIVE_FAN_SLOWING extension to hotend thermal protection (#12853) 6 years ago
InsanityAutomation a403d9a50c Improve menu pause / resume (#12876) 6 years ago
Scott Lahteine da42f27c9e Use maths macros for ceil/floor 6 years ago
Marcio Teixeira 81e753064a Fix ExtUI compile warnings and error (#12799) 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
Marcio Teixeira 50ee747787 Fix compilation errors. Followup to #12439 (#12481) 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 d82c350de7
Miscellaneous LCD code renaming, reordering (#12430)
* Move special characters to language.h
* Apply some naming standards
* Clean up menu item draw functions
* Rename some Temperature methods
* UI => ExtUI
6 years ago
Scott Lahteine 0ee1a92971
Group status methods, share reset_status with Extensible UI (#12414)
* Group status methods, share reset_status with Extensible UI
* Move common DOGM code to headers
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 488a17b3f5 Use IS_SD_PRINTING() more 6 years ago
Scott Lahteine d1ff22b983 Revive SCARA's home offset (unimplemented) 6 years ago
Scott Lahteine 44f2a82a56 Move axis_homed, axis_known_position to motion.* 6 years ago
Marcio Teixeira 72d8adfd1e Cleanup and refactor EXTENSIBLE_UI (#12227)
- Add `axis_t`, `extruder_t`, `heater_t`, and `fan_t` to eliminate ambiguity, improve type safety.
- Regularized getter/setter argument order and naming.
- `setAxisPosition` no longer stacks moves in the buffer, allowing it to be called repeatedly on each touch ui tap.
- Implement better manual moves for `EXTENSIBLE_UI` (#12205)
- Calling `setAxisPosition_mm` no longer buffers the entire move to the new position, but instead causes small moves towards it to be made during the idle loop. This allows the user to adjust the destination even after the move has started and makes the UI feel much more responsive.
- As suggested by @ejtagle, the new code keeps the planner buffer full to ensure smooth motion without stops and starts.
- Change `En`, `Hn` and `FANn` to zero-based indices.
- Labels consistent with the rest of Marlin code.
6 years ago
Scott Lahteine f9b80e7217 Make getfilename_sorted standard for listings 6 years ago
Scott Lahteine 53c535a0c1 Remove trailing whitespace 6 years ago
Scott Lahteine 9613f00877 Fix getProgress_seconds_elapsed to return seconds 6 years ago
gjdodd 5d487ef40e Fix null exception due to duration_t of zero (#12207) 6 years ago
gjdodd 0a549fd1f2 Fix EXTENSIBLE_UI compile errors (#12206) 6 years ago
Marcio Teixeira fc31da1114 Implement custom delay/millis for EXTENSIBLE_UI (#12188) 6 years ago
Marcio Teixeira 2e5e689a7f Fix kill() and ExtensibleUI (#12160)
* Fix to isPrintingFromMedia()

  - isPrintingFromMedia() will now return true even if SD print is paused.
  - isPrintingFromMediaPaused() allows UI to determine if the print is paused.

* Don't use _delay_us in minkill (#12145)

  - In HAL_DUE, _delay_us is simply an alias for delay, which causes the board to hang and subsequently reboot due to the watchdog timer.

* Shorten code with IFSD macro
6 years ago
TheSFReader 1fb9b299d4 Add M524 to abort SD printing (#12155) 6 years ago
Scott Lahteine c6a5c74208 Add parentheses to SD macros 6 years ago
Marcio Teixeira f98f4ac7ea Fix and improve EXTENSIBLE_UI (#12117)
- Add methods to access print counter data
- Clean up some inconsistent method names
- Clear lcd status after filament change
- Implement `lcd_reset_status` so it works like UltraLCD
6 years ago
Marcio Teixeira 056561df93 [2.0.x] Enhancements to FILAMENT_RUNOUT_SENSOR (#12069)
- Added FILAMENT_RUNOUT_DISTANCE_MM option
- Added FILAMENT_MOTION_SENSOR option
6 years ago
Scott Lahteine d556dc1865
Fix and improve EEPROM storage (#12054)
* Clean up Temperature PID
* Improve EEPROM read/write/validate
* Group `SINGLENOZZLE` saved settings
* Group planner saved settings
* Group filament change saved settings
* Group skew saved settings
* Group `FWRETRACT` saved settings
6 years ago
Marcio Teixeira cef1de89d0 Fixed incorrect axis index. (#12051) 6 years ago
Marcio Teixeira 906a24fa81 Extensible user interface API (#11193) 6 years ago