Use serial shorthand
This commit is contained in:
1 parent
49564e5310
commit
708ea3d0bb
21 files changed
+88
-132
No files matched your search
@@ -32,14 +32,14 @@
|
||||
* S<seconds> Optional. Set the keepalive interval.
|
||||
*/
|
||||
void GcodeSuite::M113() {
|
||||
|
||||
if (parser.seenval('S')) {
|
||||
host_keepalive_interval = parser.value_byte();
|
||||
NOMORE(host_keepalive_interval, 60);
|
||||
}
|
||||
else {
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOLNPAIR("M113 S", (unsigned long)host_keepalive_interval);
|
||||
}
|
||||
else
|
||||
SERIAL_ECHO_MSG("M113 S", (uint16_t)host_keepalive_interval);
|
||||
|
||||
}
|
||||
|
||||
#endif // HOST_KEEPALIVE_FEATURE
|
||||
Reference in new issue
Block a user