Skip to content

Commit

Permalink
add resume commamnd
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Aug 2, 2024
1 parent 4b1eeaf commit 6113c70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bambulabs/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ pub enum PrintCommand {
GcodeLine,
/// Project file.
ProjectFile,
/// Resume the print.
Resume,
/// Stop the print.
Stop,
/// Extrusion calibration get.
Expand Down Expand Up @@ -362,7 +364,7 @@ pub struct Info {
/// The result of the info command.
pub result: Option<String>,
/// The reason of the info command.
pub reason: String,
pub reason: Option<String>,
#[serde(flatten)]
other: BTreeMap<String, Value>,
}
Expand Down
9 changes: 8 additions & 1 deletion openapi/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
},
"reason": {
"description": "The reason of the info command.",
"nullable": true,
"type": "string"
},
"result": {
Expand All @@ -72,7 +73,6 @@
"required": [
"command",
"module",
"reason",
"sequence_id"
],
"type": "object"
Expand Down Expand Up @@ -862,6 +862,13 @@
],
"type": "string"
},
{
"description": "Resume the print.",
"enum": [
"resume"
],
"type": "string"
},
{
"description": "Stop the print.",
"enum": [
Expand Down

0 comments on commit 6113c70

Please sign in to comment.