Skip to content

Commit

Permalink
Merge pull request prusa3d#4545 from 3d-gussner/MK3_Fix_M850
Browse files Browse the repository at this point in the history
Fix M850 output and documentation
  • Loading branch information
3d-gussner authored Dec 19, 2023
2 parents 15a3fb9 + c9ea5fa commit 8aa344e
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7875,9 +7875,22 @@ SERIAL_PROTOCOLPGM("\n\n");
break;

case 850: {
//! ### M850 - set sheet parameters
//! //!@n M850 - Set sheet data S[id] Z[offset] L[label] B[bed_temp] P[PINDA_TEMP] A[IS_ACTIVE]
uint8_t iSel = 0;
/*!
### M850 - Sheet parameters <a href="https://reprap.org/wiki/G-code#M850:_Sheet_parameters">M850: Sheet parameters</a>
Get and Set Sheet parameters
#### Usage
M25 [ S | Z | L | B | P | A ]
#### Parameters
- `S` - Sheet id [0-7]
- `Z` - Z offset
- `L` - Label [aA-zZ, 0-9 max 7 chars]
- `B` - Bed temp
- `P` - PINDA temp
- `A` - Active [0|1]
*/
uint8_t iSel = 0;
int16_t zraw = 0;
float z_val = 0;
char strLabel[8];
Expand Down Expand Up @@ -7976,7 +7989,7 @@ SERIAL_PROTOCOLPGM("\n\n");
SERIAL_PROTOCOLPGM(" B");
SERIAL_PROTOCOL((int)iBedC);
SERIAL_PROTOCOLPGM(" P");
SERIAL_PROTOCOLLN((int)iPindaC);
SERIAL_PROTOCOL((int)iPindaC);
SERIAL_PROTOCOLPGM(" A");
SERIAL_PROTOCOLLN((int)bIsActive);
break;
Expand Down

0 comments on commit 8aa344e

Please sign in to comment.