mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 13:25:54 +00:00
🎨 Clean up after recent PRs
This commit is contained in:
parent
31683ce35b
commit
a955e06259
@ -31,8 +31,8 @@
|
||||
|
||||
struct MarlinSerial : public Usart {
|
||||
MarlinSerial(
|
||||
struct usart_config_t *usart_device,
|
||||
gpio_pin_t tx_pin,
|
||||
struct usart_config_t *usart_device,
|
||||
gpio_pin_t tx_pin,
|
||||
gpio_pin_t rx_pin
|
||||
#if ENABLED(SERIAL_DMA)
|
||||
, M4_DMA_TypeDef *dma_unit = nullptr,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* app_config.h is included by the hc32f460 arduino build script for every source file.
|
||||
* it is used to configure the arduino core (and ddl) automatically according
|
||||
* it is used to configure the arduino core (and ddl) automatically according
|
||||
* to the settings in Configuration.h and Configuration_adv.h.
|
||||
*/
|
||||
#pragma once
|
||||
@ -44,7 +44,7 @@
|
||||
#define DISABLE_SERIAL_GLOBALS 1
|
||||
|
||||
// increase the size of the Usart buffers (both RX and TX)
|
||||
// NOTE:
|
||||
// NOTE:
|
||||
// the heap usage will increase by (SERIAL_BUFFER_SIZE - 64) * "number of serial ports used"
|
||||
// if running out of heap, the system may become unstable
|
||||
//#define SERIAL_BUFFER_SIZE 256
|
||||
|
@ -30,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
#if ARDUINO_CORE_VERSION_INT < GET_VERSION_INT(1, 1, 0)
|
||||
// because we use app_config.h introduced in arduino core version 1.1.0, the
|
||||
// because we use app_config.h introduced in arduino core version 1.1.0, the
|
||||
// HAL is not compatible with older versions
|
||||
#error "The HC32 HAL is not compatible with Arduino Core versions < 1.1.0. Consider updating the Arduino Core."
|
||||
#endif
|
||||
|
@ -377,10 +377,10 @@ void MarlinUI::draw_kill_screen() {
|
||||
void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
|
||||
|
||||
#if HAS_DISPLAY_SLEEP
|
||||
void MarlinUI::sleep_display(const bool sleep/*=true*/) {
|
||||
void MarlinUI::sleep_display(const bool sleep/*=true*/) {
|
||||
static bool asleep = false;
|
||||
if (asleep != sleep){
|
||||
sleep ? u8g.sleepOn() : u8g.sleepOff();
|
||||
sleep ? u8g.sleepOn() : u8g.sleepOff();
|
||||
asleep = sleep;
|
||||
}
|
||||
}
|
||||
|
@ -557,7 +557,7 @@ MARLIN_TEST(macros_options, OPTITEM) {
|
||||
MARLIN_TEST(macros_options, OPTARG) {
|
||||
int enabledArgs[] = {0 OPTARG(OPTION_ENABLED, 1, 2)};
|
||||
int disabledArgs[] = {0 OPTARG(OPTION_DISABLED, 1, 2)};
|
||||
|
||||
|
||||
int sumEnabledArgs = 0;
|
||||
for (const auto& arg : enabledArgs) {
|
||||
sumEnabledArgs += arg;
|
||||
|
@ -34,7 +34,7 @@ build_type = release
|
||||
build_flags =
|
||||
-D ARDUINO_ARCH_HC32
|
||||
-D PLATFORM_M997_SUPPORT # Enable M997 command
|
||||
# note: ddl and arduino debug mode are
|
||||
# note: ddl and arduino debug mode are
|
||||
# automatically enabled with MARLIN_DEV_MODE
|
||||
#-D __DEBUG # force DDL debug mode
|
||||
#-D __CORE_DEBUG # force Arduino core debug mode
|
||||
|
@ -32,7 +32,7 @@ extra_scripts = ${common.extra_scripts}
|
||||
build_src_filter = ${env:linux_native.build_src_filter} +<tests>
|
||||
lib_deps = throwtheswitch/Unity@^2.5.2
|
||||
test_build_src = true
|
||||
build_unflags =
|
||||
build_unflags =
|
||||
build_flags = ${env:linux_native.build_flags} -Werror
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user