Skip to content

Commit 86da338

Browse files
⛙ Merge w/Marlin
2 parents a296c31 + b553c0e commit 86da338

32 files changed

+149
-144
lines changed

Marlin/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* here we define this default string as the date where the latest release
4242
* version was tagged.
4343
*/
44-
//#define STRING_DISTRIBUTION_DATE "2026-02-19"
44+
//#define STRING_DISTRIBUTION_DATE "2026-02-22"
4545

4646
#define STRING_DISTRIBUTION_DATE __DATE__
4747
#define STRING_DISTRIBUTION_TIME __TIME__

Marlin/src/HAL/HC32/sdio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool SDIO_ReadBlock(uint32_t block, uint8_t *dst) {
109109
WITH_RETRY(SDIO_READ_RETRIES, {
110110
en_result_t rc = SDCARD_ReadBlocks(handle, block, 1, dst, SDIO_READ_TIMEOUT);
111111
if (rc == Ok) return true;
112-
printf("SDIO_ReadBlock error (rc=%u; ErrorCode=%lu)\n", rc, handle->u32ErrorCode);
112+
printf("SDIO_ReadBlock error (rc=%u; ErrorCode=%" PRIu32 ")\n", rc, handle->u32ErrorCode);
113113
})
114114

115115
return false;
@@ -122,7 +122,7 @@ bool SDIO_WriteBlock(uint32_t block, const uint8_t *src) {
122122
WITH_RETRY(SDIO_WRITE_RETRIES, {
123123
en_result_t rc = SDCARD_WriteBlocks(handle, block, 1, (uint8_t *)src, SDIO_WRITE_TIMEOUT);
124124
if (rc == Ok) return true;
125-
printf("SDIO_WriteBlock error (rc=%u; ErrorCode=%lu)\n", rc, handle->u32ErrorCode);
125+
printf("SDIO_WriteBlock error (rc=%u; ErrorCode=%" PRIu32 ")\n", rc, handle->u32ErrorCode);
126126
})
127127

128128
return false;

Marlin/src/HAL/RP2040/pinsDebug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int8_t digital_pin_to_analog_pin(pin_t pin) {
137137
}
138138

139139
bool isAnalogPin(const pin_t pin) {
140-
return digital_pin_to_analog_pin(pin) != -1;
140+
return digital_pin_to_analog_pin(pin) >= 0;
141141
}
142142

143143
#define digitalRead_mod(A) extDigitalRead(A) // must use Arduino pin numbers when doing reads

Marlin/src/HAL/SAMD21/pinsDebug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define getPinByIndex(x) pin_array[x].pin
5151
#define getPinIsDigitalByIndex(x) pin_array[x].is_digital
5252
#define isValidPin(P) (P >= 0 && P < pin_t(NUMBER_PINS_TOTAL))
53-
#define isAnalogPin(P) (digitalPinToAnalogIndex(P) != -1)
53+
#define isAnalogPin(P) (digitalPinToAnalogIndex(P) >= 0)
5454
#define pwm_status(P) digitalPinHasPWM(P)
5555
#define MULTI_NAME_PAD 27 // space needed to be pretty if not first name assigned to a pin
5656

Marlin/src/HAL/STM32/sd/usb_host.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ void USBHost::setUsbTaskState(uint8_t state) {
8888
capacity = info.capacity.block_nbr / 2000;
8989
block_size = info.capacity.block_size;
9090
block_count = info.capacity.block_nbr;
91-
//SERIAL_ECHOLNPGM("info.capacity.block_nbr : %ld\n", info.capacity.block_nbr);
92-
//SERIAL_ECHOLNPGM("info.capacity.block_size: %d\n", info.capacity.block_size);
93-
//SERIAL_ECHOLNPGM("capacity : %d MB\n", capacity);
91+
//SERIAL_ECHOLNPGM("info.capacity.block_nbr : ", info.capacity.block_nbr);
92+
//SERIAL_ECHOLNPGM("info.capacity.block_size: ", info.capacity.block_size);
93+
//SERIAL_ECHOLNPGM("capacity : ", capacity, "MB");
9494
}
9595
};
9696

Marlin/src/MarlinCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ void Marlin::manage_inactivity(const bool no_stepper_sleep/*=false*/) {
720720
motion.position.e += EXTRUDER_RUNOUT_EXTRUDE;
721721
motion.goto_current_position(MMM_TO_MMS(EXTRUDER_RUNOUT_SPEED));
722722
motion.position.e = olde;
723-
planner.set_e_position_mm(olde);
723+
motion.sync_plan_position_e();
724724
planner.synchronize();
725725

726726
if (e_off) stepper.DISABLE_EXTRUDER(e_stepper);

Marlin/src/core/macros.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
// Array shorthand
300300
#define COUNT(a) (sizeof(a)/sizeof(*a))
301301
#define ZERO(a) memset((void*)a,0,sizeof(a))
302+
#define OBJZERO(a) memset(&a,0,sizeof(a))
302303
#define COPY(a,b) do{ \
303304
static_assert(sizeof(a[0]) == sizeof(b[0]), "COPY: '" STRINGIFY(a) "' and '" STRINGIFY(b) "' types (sizes) don't match!"); \
304305
memcpy(&a[0],&b[0],_MIN(sizeof(a),sizeof(b))); \

Marlin/src/feature/pause.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,8 @@ void resume_print(
740740

741741
// Now all extrusion positions are resumed and ready to be confirmed
742742
// Set extruder to saved position
743-
planner.set_e_position_mm((motion.destination.e = motion.position.e = resume_position.e));
743+
motion.destination.e = motion.position.e = resume_position.e;
744+
motion.sync_plan_position_e();
744745

745746
ui.pause_show_message(PAUSE_MESSAGE_STATUS);
746747
#if ENABLED(SOVOL_SV06_RTS)

Marlin/src/inc/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* version was tagged.
4343
*/
4444
#ifndef STRING_DISTRIBUTION_DATE
45-
#define STRING_DISTRIBUTION_DATE "2026-02-19"
45+
#define STRING_DISTRIBUTION_DATE "2026-02-22"
4646
#endif
4747

4848
/**

Marlin/src/lcd/HD44780/marlinui_HD44780.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ void MarlinUI::draw_status_screen() {
10781078
#if ENABLED(LCD_SHOW_E_TOTAL)
10791079
char tmp[20];
10801080
const uint8_t escale = motion.e_move_accumulator >= 100000.0f ? 10 : 1; // After 100m switch to cm
1081-
sprintf_P(tmp, PSTR("E %ld%cm "), uint32_t(_MAX(motion.e_move_accumulator, 0.0f)) / escale, escale == 10 ? 'c' : 'm'); // 1234567mm
1081+
sprintf_P(tmp, PSTR("E %" PRIu32 "%cm "), uint32_t(_MAX(motion.e_move_accumulator, 0.0f)) / escale, escale == 10 ? 'c' : 'm'); // 1234567mm
10821082
lcd_put_u8str(tmp);
10831083
#endif
10841084
}

0 commit comments

Comments
 (0)