From c00415b017ccb7d347c463c57b996e85da14c184 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 3 Oct 2025 18:49:34 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Simpler=20M?= =?UTF-8?q?260=20R=20S?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/gcode/feature/i2c/M260_M261.cpp | 8 ++++---- Marlin/src/module/planner.cpp | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Marlin/src/gcode/feature/i2c/M260_M261.cpp b/Marlin/src/gcode/feature/i2c/M260_M261.cpp index cf9bb7e583..7f2e719bb2 100644 --- a/Marlin/src/gcode/feature/i2c/M260_M261.cpp +++ b/Marlin/src/gcode/feature/i2c/M260_M261.cpp @@ -40,8 +40,8 @@ * M260 B * M260 B * - * 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(); } /** diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp index 452573ea3a..e48a55ae48 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -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();