Guðni Már Gilbert
15fbb93a8c
add that downwards facing >> character
2022-09-16 10:22:37 +02:00
Guðni Már Gilbert
b59c9da9ee
Move extruder when loading filament to fsensor
...
When the fsensor see filament, stop the extruder
2022-09-16 10:22:37 +02:00
Guðni Már Gilbert
96540d6e2d
Fix return value of WhereIsFilament()
...
getFilamentPresent returns the state of the IO pin of the sensor.
So we should use AT_FSENSOR instead of IN_NOZZLE
since the fsensor does not know if the filament is actually in the nozzle.
2022-09-16 10:22:37 +02:00
Guðni Már Gilbert
11290c1123
Add a read function for mmu_print_saved
...
and remove the old extern value which is not used anymore
I had to remove "MMU2::" from mmu2_protocol_logic.cpp, otherwise the build failed.
2022-09-16 10:22:37 +02:00
Guðni Már Gilbert
dcebad21c8
Add missing spaces to ErrorCode messages
...
Such that:
MMU2:E=32766ErrorTitleTextDescription
Becomes:
MMU2:E=32766 ErrorTitle TextDescription
Also simplified the process of combining ErrorTitle and TextDescription
into the msg buffer by using snprintf. This is saver since we only
use dstSize in one place instead of two.
2022-09-16 10:21:53 +02:00
Guðni Már Gilbert
6fab95f145
Fix PROGMEM read in ErrorCode message
...
This could cause the printer to crash. The Serial Stream would show
a garbled string.
Also included in this commit:
* The buffer size is increased from 64 bytes to 192 bytes. We need to
take into account the length of the ErrorTitle and ErrorDescription.
* Fix overwrite in ErrorCode message buffer.
2022-09-16 10:21:53 +02:00
Guðni Már Gilbert
52f7fb8c51
Add missing space in ProgressCode message
...
Such that:
MMU2:P=123EngageIdler
Becomes:
MMU2:P=123 EngageIdler
2022-09-16 10:21:53 +02:00
Guðni Már Gilbert
2142cb0849
Fix overwrite in ProgressCode message buffer
...
When snprintf() if called we need to read the return value to see how
many bytes were written. Then when we call strncpy_P() through
TranslateProgress(), we need to tell the code to start writing
at byte 'len', or &msg[len]. Also we need to update the byte size
which strncpy_P() is allowed to write (64 - len).
2022-09-16 10:21:53 +02:00
Guðni Már Gilbert
4b71466526
Fix PROGMEM read in ProgressCode message
...
This could cause the printer to crash. The Serial Stream would show
a garbled string and the same corruption would appear on the Status
Screen's status line.
2022-09-16 10:21:53 +02:00
Guðni Már Gilbert
d6044387d9
Fix crash in manage_response
...
The watchdog needs to be kicked in the for(;;) loop.
This is usually done by calling manage_heater before
manage_inactivity.
2022-09-16 10:21:53 +02:00
Alex Voinea
c0a6d1343a
Increase RX buffer size
2022-09-16 10:21:53 +02:00
Alex Voinea
c201a5791a
Implement MMU hw reset
2022-09-16 10:21:53 +02:00
Alex Voinea
cc177ec5ad
Remove old mmu.cpp
2022-09-16 10:21:53 +02:00
D.R.racer
b27f690556
Add ProgressCodes -> text converter
2022-09-16 10:21:53 +02:00
D.R.racer
9140ebba55
Add MMU FW version variables
...
hardcoded for now, but API ready
2022-09-16 10:21:53 +02:00
D.R.racer
22287fec5d
Add original M600 MMU handling
...
seems to be almost unrelated to MMU function at all,
so returning it almost intact.
2022-09-16 10:21:53 +02:00
D.R.racer
87d9f9aba7
Introduce MMU errors + their texts
2022-09-16 10:21:53 +02:00
Alex Voinea
74fad4f8f6
Implement fsensor raii event suppression
2022-09-16 10:21:53 +02:00
D.R.racer
1211ad9360
Report state of fsensor into the MMU code
2022-09-16 10:21:53 +02:00
D.R.racer
825eed97d4
Fix build after rebase
2022-09-16 10:21:53 +02:00
D.R.racer
4fa4b3b2fc
Refactor Tx/Tc/T? commands
2022-09-16 10:21:53 +02:00
D.R.racer
4732859a98
Avoid exposing internal variables of fsensor
...
makes the code a bit shorter as well, because the compiler can be sure
that the variables are not accessed from the outside of the
fsensor.cpp compilation unit.
2022-09-16 10:21:53 +02:00
D.R.racer
db0374896f
Implement mmu2 serial interface
2022-09-16 10:21:53 +02:00
D.R.racer
208e620660
Return ir_sensor_detected + related functionality
2022-09-16 10:21:53 +02:00
D.R.racer
5870bbc524
Prune most of TODO from mmu2.cpp
...
+ refactor sound.h for better readability
2022-09-16 10:21:53 +02:00
D.R.racer
2e293e90a0
MMU2 interface overhaul
...
First port of the new MMU2-printer interface into 8bit FW.
2022-09-16 10:21:53 +02:00
Alex Voinea
c27e4623c5
Fix build (??)
2022-09-16 10:20:32 +02:00
Alex Voinea
329745368e
Improve PAT9125 UI implementation
2022-09-16 10:20:32 +02:00
Alex Voinea
340bc87110
Checkpoint: jam detection
2022-09-16 10:20:32 +02:00
Alex Voinea
65b2881b06
PAT9125 first prototype
2022-09-16 10:17:33 +02:00
Alex Voinea
c5c4c21124
Update Sensor info menu documentation
2022-09-16 10:17:04 +02:00
Alex Voinea
bdfd3305cb
Cleanup pat9125.h
2022-09-16 10:17:04 +02:00
Alex Voinea
c46b97ec2d
Add base code for PAT9125_sensor
2022-09-16 10:17:04 +02:00
Alex Voinea
90b78616b7
Fix reinit on error
2022-09-16 10:17:04 +02:00
Alex Voinea
fba6d44f33
fsensor event blanking
2022-09-16 10:17:04 +02:00
Alex Voinea
52b44ad178
fsensor add deinit
2022-09-16 10:17:04 +02:00
Alex Voinea
ea23e6d924
Fix MK2 build?
2022-09-16 10:17:04 +02:00
Alex Voinea
bbe1b1145e
Correct ifdefs for all IR sensor types
2022-09-16 10:17:04 +02:00
Alex Voinea
a256370c39
Remove original marlin fsensor code
2022-09-16 10:17:04 +02:00
Alex Voinea
f9ff929bbe
Enable fsensor when preparing for shipping
2022-09-16 10:17:04 +02:00
Alex Voinea
d2bfe422f1
Separate runout and enabled settings
2022-09-16 10:17:04 +02:00
Alex Voinea
b741707c0e
Fsensor error state
2022-09-16 10:17:04 +02:00
Alex Voinea
cfe8444fe3
Revert menu hack
2022-09-16 10:17:04 +02:00
Alex Voinea
5484882758
Checkpoint after a lot of removal
2022-09-16 10:17:04 +02:00
Alex Voinea
8fae5e708e
Remove unused fsensor variables
2022-09-16 10:09:20 +02:00
Alex Voinea
fc49ba115a
Move more IR sensor analog stuff to Filament_sensor.h
2022-09-16 10:09:20 +02:00
Alex Voinea
b52022f6c6
More dead code removal
2022-09-16 10:08:39 +02:00
Alex Voinea
241c4cc86c
Remove dead code
2022-09-16 10:08:39 +02:00
Alex Voinea
6663f719f6
Remove old fsensor_init()
2022-09-16 10:08:39 +02:00
Alex Voinea
43db24e4fe
IR_sensor_analog voltage readings
2022-09-16 10:08:39 +02:00