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