mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 13:25:54 +00:00
🩹 Patches for MSC SD (#26332)
This commit is contained in:
parent
f0ad1e9b70
commit
9cd341c2c3
@ -71,9 +71,9 @@ public:
|
||||
bool done = false;
|
||||
for (uint16_t rcount = SD_MULTIBLOCK_RETRY_CNT; !done && rcount--;) {
|
||||
uint8_t *cBuf = pBuf;
|
||||
sd2card->writeStart(blkAddr);
|
||||
sd2card->writeStart(blkAddr, blkLen);
|
||||
bool okay = true; // Assume success
|
||||
for (uint32 i = blkLen; i--;) {
|
||||
for (uint32_t i = blkLen; i--;) {
|
||||
hal.watchdog_refresh();
|
||||
if (!sd2card->writeData(cBuf)) { // Write. Did it fail?
|
||||
sd2card->writeStop(); // writeStop for new writeStart
|
||||
@ -103,7 +103,7 @@ public:
|
||||
uint8_t *cBuf = pBuf;
|
||||
sd2card->readStart(blkAddr);
|
||||
bool okay = true; // Assume success
|
||||
for (uint32 i = blkLen; i--;) {
|
||||
for (uint32_t i = blkLen; i--;) {
|
||||
hal.watchdog_refresh();
|
||||
if (!sd2card->readData(cBuf)) { // Read. Did it fail?
|
||||
sd2card->readStop(); // readStop for new readStart
|
||||
|
@ -121,8 +121,8 @@ static font_group_t g_fontgroup_root = { nullptr, 0 };
|
||||
*/
|
||||
static inline bool uxg_Utf8FontIsInited() { return flag_fontgroup_was_inited; }
|
||||
|
||||
int uxg_SetUtf8Fonts (const uxg_fontinfo_t * fntinfo, int number) {
|
||||
flag_fontgroup_was_inited = 1;
|
||||
int uxg_SetUtf8Fonts(const uxg_fontinfo_t *fntinfo, int number) {
|
||||
flag_fontgroup_was_inited = true;
|
||||
return fontgroup_init(&g_fontgroup_root, fntinfo, number);
|
||||
}
|
||||
|
||||
|
@ -11,11 +11,12 @@ set -e
|
||||
#
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_BTT_SKR_E3_DIP SERIAL_PORT 1 SERIAL_PORT_2 -1
|
||||
opt_enable SDSUPPORT EMERGENCY_PARSER
|
||||
exec_test $1 $2 "BigTreeTech SKR E3 DIP v1.0 - Basic Configuration" "$3"
|
||||
|
||||
restore_configs
|
||||
opt_set MOTHERBOARD BOARD_BTT_SKR_CR6 SERIAL_PORT -1 SERIAL_PORT_2 2 TEMP_SENSOR_BED 1
|
||||
opt_enable CR10_STOCKDISPLAY FAN_SOFT_PWM \
|
||||
opt_enable CR10_STOCKDISPLAY SDSUPPORT EMERGENCY_PARSER FAN_SOFT_PWM \
|
||||
NOZZLE_AS_PROBE Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN Z_SAFE_HOMING \
|
||||
PROBE_ACTIVATION_SWITCH PROBE_TARE PROBE_TARE_ONLY_WHILE_INACTIVE \
|
||||
PROBING_HEATERS_OFF PREHEAT_BEFORE_PROBING
|
||||
|
Loading…
Reference in New Issue
Block a user