🧑‍💻 Simpler M260 R S

This commit is contained in:
Scott Lahteine
2025-10-03 18:49:34 -05:00
parent 3b149c3505
commit c00415b017
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -40,8 +40,8 @@
* M260 B<byte-2 value in base 10>
* M260 B<byte-3 value in base 10>
*
* M260 S1 ; Send the buffered data and reset the buffer
* M260 R1 ; Reset the buffer without sending data
* M260 S ; Send the buffered data and reset the buffer
* M260 R ; Reset the buffer without sending data
*/
void GcodeSuite::M260() {
// Set the target address
@@ -51,10 +51,10 @@ void GcodeSuite::M260() {
if (parser.seenval('B')) i2c.addbyte(parser.value_byte());
// Flush the buffer to the bus
if (parser.seen('S')) i2c.send();
if (parser.seen_test('S')) i2c.send();
// Reset and rewind the buffer
else if (parser.seen('R')) i2c.reset();
else if (parser.seen_test('R')) i2c.reset();
}
/**
-1
View File
@@ -1371,7 +1371,6 @@ void Planner::check_axes_activity() {
/**
* Called by the M104/M109 commands after setting Hotend Temperature
*
*/
void Planner::autotemp_M104_M109() {
_autotemp_update_from_hotend();