A single SERIAL_ECHO macro type (#12557)
This commit is contained in:
@ -68,13 +68,10 @@ void GcodeSuite::M261() {
|
||||
|
||||
uint8_t bytes = parser.byteval('B', 1);
|
||||
|
||||
if (i2c.addr && bytes && bytes <= TWIBUS_BUFFER_SIZE) {
|
||||
if (i2c.addr && bytes && bytes <= TWIBUS_BUFFER_SIZE)
|
||||
i2c.relay(bytes);
|
||||
}
|
||||
else {
|
||||
SERIAL_ERROR_START();
|
||||
SERIAL_ERRORLNPGM("Bad i2c request");
|
||||
}
|
||||
else
|
||||
SERIAL_ERROR_MSG("Bad i2c request");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user