Remove TODOs

This commit is contained in:
Frederik Menke 2024-01-01 13:29:53 +01:00
parent d3da56b3e5
commit b79aaca74d

View file

@ -69,7 +69,6 @@ impl Printer {
self.serial_tx.send(command_text.clone()).await.unwrap();
let mut reply = String::with_capacity(RECV_BUFFER_CAPACITY);
loop {
// TODO: add timeout below
let line = self
.serial_rx
.next()
@ -135,8 +134,8 @@ impl Printer {
x: 0.0,
y: 0.0,
z: 0.0,
}, // TODO: Fill this value through sending a command below
movement_mode: MovementMode::AbsoluteMovements, // TODO: Fill this value through sending a command below
},
movement_mode: MovementMode::AbsoluteMovements,
},
last_buffer_capacity: 0, // this is updated on the next call to `send_gcode()`
maximum_buffer_capacity: 0, // this is updated on the next call to `send_gcode()`
@ -300,7 +299,7 @@ impl Printer {
y: Some(y),
z: Some(z),
e: None, // Machine has no e
velocity: velocity,
velocity,
};
if let MovementMode::RelativeMovements = self.state.movement_mode {
self.use_absolute_movements().await?;