You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a panic in gcode after sending M28 teg.gcode. Sadly, I haven't been able to reproduce the error so there may be more to it then just parsing an M28 teg.gcode. My question is could we replace this (and any other use) of unwrap with a result?
I'm using this lib in the send gcode to printer loop for https://tegapp.io so a panic here can abort a print whereas a result could be logged safely as a warning on my end (it's non-critical that every gcode gets parsed).
PS. Thanks for making this library - it's been super helpful!
Original Error:
thread 'main' panicked at ': ParseFloatError { kind: Invalid }', /home/d1plo1d/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/gcode-0.5.2/src/words.rs:100:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
D1plo1d
changed the title
Panic's unwrapping a float
Panic unwrapping a float
Jul 23, 2020
I got a panic in gcode after sending
M28 teg.gcode
. Sadly, I haven't been able to reproduce the error so there may be more to it then just parsing anM28 teg.gcode
. My question is could we replace this (and any other use) of unwrap with a result?I'm using this lib in the send gcode to printer loop for https://tegapp.io so a panic here can abort a print whereas a result could be logged safely as a warning on my end (it's non-critical that every gcode gets parsed).
PS. Thanks for making this library - it's been super helpful!
Original Error:
The text was updated successfully, but these errors were encountered: