From 7f1e0c5670c118a0d9b33094a240d1a53193f8ac Mon Sep 17 00:00:00 2001 From: Sam Lane <9569766+SJ-Innovation@users.noreply.github.com> Date: Wed, 15 May 2019 07:07:07 +0100 Subject: [PATCH] Update EXTRA_LINADV_K with Marlin bit macros (#13993) --- Marlin/src/gcode/feature/advance/M900.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/gcode/feature/advance/M900.cpp b/Marlin/src/gcode/feature/advance/M900.cpp index ceb95dd54..0729b9170 100644 --- a/Marlin/src/gcode/feature/advance/M900.cpp +++ b/Marlin/src/gcode/feature/advance/M900.cpp @@ -55,13 +55,13 @@ void GcodeSuite::M900() { #if ENABLED(EXTRA_LIN_ADVANCE_K) - bool ext_slot = bitRead(lin_adv_slot, tmp_extruder); + bool ext_slot = TEST(lin_adv_slot, tmp_extruder); if (parser.seenval('S')) { const bool slot = parser.value_bool(); if (ext_slot != slot) { ext_slot = slot; - bitWrite(lin_adv_slot, tmp_extruder, slot); + SET_BIT_TO(lin_adv_slot, tmp_extruder, slot); planner.synchronize(); const float temp = planner.extruder_advance_K[tmp_extruder]; planner.extruder_advance_K[tmp_extruder] = saved_extruder_advance_K[tmp_extruder]; @@ -103,7 +103,7 @@ void GcodeSuite::M900() { SERIAL_ECHOLNPAIR("(Slot ", 1 - ext_slot, " K", saved_extruder_advance_K[0], ")"); #else LOOP_L_N(i, EXTRUDERS) { - const int slot = (int)bitRead(lin_adv_slot, i); + const int slot = (int)TEST(lin_adv_slot, i); SERIAL_ECHOLNPAIR("Advance T", int(i), " S", slot, " K", planner.extruder_advance_K[i]); SERIAL_ECHOLNPAIR("(Slot ", 1 - slot, " K", saved_extruder_advance_K[i], ")"); SERIAL_EOL();