From ba1919c1eb3b617f8570b74c8540ead3212f992f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 22 Aug 2018 17:15:32 -0500 Subject: [PATCH] HAL tweaks to LPC1768 main --- Marlin/src/HAL/HAL_LPC1768/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/main.cpp b/Marlin/src/HAL/HAL_LPC1768/main.cpp index 8941703f2..399120dac 100644 --- a/Marlin/src/HAL/HAL_LPC1768/main.cpp +++ b/Marlin/src/HAL/HAL_LPC1768/main.cpp @@ -7,7 +7,7 @@ extern void setup(); extern void loop(); extern "C" { -#include + #include } #include @@ -19,9 +19,9 @@ extern "C" { #include extern "C" { -#include -#include -#include + #include + #include + #include } #include "../../inc/MarlinConfig.h" @@ -62,12 +62,12 @@ extern "C" { _millis = 0; // Initialize the millisecond counter value SysTick_Config(SystemCoreClock / 1000); // Start millisecond global counter - // Runs before setup() need to configure LED_PIN and use to indicate succsessful bootloader execution + // Runs before setup() to configure LED_PIN and used to indicate successful bootloader execution #if PIN_EXISTS(LED) SET_DIR_OUTPUT(LED_PIN); WRITE_PIN_CLR(LED_PIN); - //MKS-SBASE has 3 other LEDS the bootloader uses during flashing, clear them + // MKS_SBASE has 3 other LEDs the bootloader uses during flashing. Clear them. SET_DIR_OUTPUT(P1_19); WRITE_PIN_CLR(P1_19); SET_DIR_OUTPUT(P1_20); @@ -75,7 +75,7 @@ extern "C" { SET_DIR_OUTPUT(P1_21); WRITE_PIN_CLR(P1_21); - for (int i = 0; i < 6; ++i) { + for (uint8_t i = 6; i--;) { TOGGLE(LED_PIN); delay(100); }