Skip to content

Commit

Permalink
Merge branch 'bugfix-2.0.x' of https://github.com/MarlinFirmware/Marlin
Browse files Browse the repository at this point in the history
… into bugfix-2.0.x
  • Loading branch information
crysxd committed Sep 12, 2020
2 parents 07ecd2b + 6f8282f commit 9f740e2
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 91 deletions.
4 changes: 0 additions & 4 deletions Marlin/src/gcode/control/M993_M994.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ void GcodeSuite::M993() {
return;
}

W25QXXFlash W25QXX;

uint8_t buf[1024];
uint32_t addr = 0;
W25QXX.init(SPI_QUARTER_SPEED);
Expand Down Expand Up @@ -71,8 +69,6 @@ void GcodeSuite::M994() {
return;
}

W25QXXFlash W25QXX;

uint8_t buf[1024];
uint32_t addr = 0;
W25QXX.init(SPI_QUARTER_SPEED);
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/inc/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* version was tagged.
*/
#ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2020-09-11"
#define STRING_DISTRIBUTION_DATE "2020-09-12"
#endif

/**
Expand Down
138 changes: 69 additions & 69 deletions Marlin/src/lcd/dwin/e3v2/dwin.cpp

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/SPIFlashStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "../../../../inc/MarlinConfig.h"
#include "SPIFlashStorage.h"

extern W25QXXFlash W25QXX;

uint8_t SPIFlashStorage::m_pageData[SPI_FLASH_PageSize];
uint32_t SPIFlashStorage::m_currentPage;
uint16_t SPIFlashStorage::m_pageDataUsed;
Expand Down
1 change: 0 additions & 1 deletion Marlin/src/lcd/extui/lib/mks_ui/draw_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include "../../../../feature/pause.h"
#endif

W25QXXFlash W25QXX;
CFG_ITMES gCfgItems;
UI_CFG uiCfg;
DISP_STATE_STACK disp_state_stack;
Expand Down
2 changes: 0 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/pic_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ extern void spi_flash_read_test();
extern void default_view_Read(uint8_t *default_view_Rbuff, uint32_t default_view_Readsize);
extern void flash_view_Read(uint8_t *flash_view_Rbuff, uint32_t flash_view_Readsize);

extern W25QXXFlash W25QXX;

#ifdef __cplusplus
} /* C-declarations for C++ */
#endif
7 changes: 5 additions & 2 deletions Marlin/src/lcd/menu/menu_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#include "game/game.h"
#endif

#define VALUE_ITEM(MSG, VALUE, STYL) do{ char msg[21]; strcpy_P(msg, PSTR(": ")); strcpy(msg + 2, VALUE); STATIC_ITEM(MSG, STYL, msg); }while(0)
#define VALUE_ITEM_P(MSG, PVALUE, STYL) do{ char msg[21]; strcpy_P(msg, PSTR(": ")); strcpy_P(msg + 2, PSTR(PVALUE)); STATIC_ITEM(MSG, STYL, msg); }while(0)

#if ENABLED(PRINTCOUNTER)

#include "../../module/printcounter.h"
Expand All @@ -49,8 +52,8 @@
char buffer[21];

START_SCREEN(); // 12345678901234567890
STATIC_ITEM(MSG_INFO_PRINT_COUNT, SS_LEFT, i16tostr3left(stats.totalPrints)); // Print Count: 999
STATIC_ITEM(MSG_INFO_COMPLETED_PRINTS, SS_LEFT, i16tostr3left(stats.finishedPrints)); // Completed : 666
VALUE_ITEM(MSG_INFO_PRINT_COUNT, i16tostr3left(stats.totalPrints), SS_LEFT); // Print Count: 999
VALUE_ITEM(MSG_INFO_COMPLETED_PRINTS, i16tostr3left(stats.finishedPrints), SS_LEFT); // Completed : 666

STATIC_ITEM(MSG_INFO_PRINT_TIME, SS_LEFT); // Total print Time:
STATIC_ITEM_P(PSTR("> "), SS_LEFT, duration_t(stats.printTime).toString(buffer)); // > 99y 364d 23h 59m 59s
Expand Down
3 changes: 2 additions & 1 deletion Marlin/src/libs/W25Qxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@

#if HAS_SPI_FLASH

#include "W25Qxx.h"
#include <SPI.h>

#include "W25Qxx.h"
W25QXXFlash W25QXX;

#ifndef SPI_FLASH_MISO_PIN
#define SPI_FLASH_MISO_PIN W25QXX_MISO_PIN
Expand Down
10 changes: 2 additions & 8 deletions Marlin/src/libs/W25Qxx.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
Expand All @@ -21,10 +21,6 @@
*/
#pragma once

//#ifdef __cplusplus
//extern "C" { /* C-declarations for C++ */
//#endif

#include <stdint.h>

#define W25X_WriteEnable 0x06
Expand Down Expand Up @@ -71,6 +67,4 @@ class W25QXXFlash {
static void SPI_FLASH_BufferRead(uint8_t* pBuffer, uint32_t ReadAddr, uint16_t NumByteToRead);
};

//#ifdef __cplusplus
//} /* C-declarations for C++ */
//#endif
extern W25QXXFlash W25QXX;
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
[env:STM32F103RET6_creality]
platform = ${common_stm32f1.platform}
extends = common_stm32f1
board = genericSTM32F103RC
board = genericSTM32F103RE
build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY -DTEMP_TIMER_CHAN=4
extra_scripts = ${common.extra_scripts}
Expand Down

0 comments on commit 9f740e2

Please sign in to comment.