Browse Source

Remove extra pragmas

pull/1/head
Scott Lahteine 5 years ago
parent
commit
c2b319360d
  1. 2
      Marlin/src/HAL/HAL_TEENSY31_32/HAL_timers_Teensy.h
  2. 2
      Marlin/src/HAL/HAL_TEENSY31_32/endstop_interrupts.h
  3. 2
      Marlin/src/HAL/HAL_TEENSY31_32/fastio_Teensy.h
  4. 2
      Marlin/src/HAL/shared/servo.h
  5. 1
      Marlin/src/feature/Max7219_Debug_LEDs.h
  6. 1
      Marlin/src/gcode/gcode.h
  7. 2
      Marlin/src/lcd/extensible_ui/ui_api.h
  8. 2
      Marlin/src/libs/vector_3.h
  9. 2
      Marlin/src/module/delta.h
  10. 1
      Marlin/src/module/motion.h
  11. 2
      Marlin/src/module/scara.h
  12. 2
      Marlin/src/pins/stm32/pins_BLACK_STM32F407VE.h

2
Marlin/src/HAL/HAL_TEENSY31_32/HAL_timers_Teensy.h

@ -26,8 +26,6 @@
* Teensy3.2 (__MK20DX256__) * Teensy3.2 (__MK20DX256__)
*/ */
#pragma once
#include <stdint.h> #include <stdint.h>
// ------------------------ // ------------------------

2
Marlin/src/HAL/HAL_TEENSY31_32/endstop_interrupts.h

@ -35,8 +35,6 @@
* (Located in Marlin/buildroot/share/pin_interrupt_test/pin_interrupt_test.ino) * (Located in Marlin/buildroot/share/pin_interrupt_test/pin_interrupt_test.ino)
*/ */
#pragma once
#include "../../module/endstops.h" #include "../../module/endstops.h"
// One ISR for all EXT-Interrupts // One ISR for all EXT-Interrupts

2
Marlin/src/HAL/HAL_TEENSY31_32/fastio_Teensy.h

@ -27,8 +27,6 @@
* Contributed by Triffid_Hunter and modified by Kliment, thinkyhead, Bob-the-Kuhn, et.al. * Contributed by Triffid_Hunter and modified by Kliment, thinkyhead, Bob-the-Kuhn, et.al.
*/ */
#pragma once
#ifndef MASK #ifndef MASK
#define MASK(PIN) (1 << PIN) #define MASK(PIN) (1 << PIN)
#endif #endif

2
Marlin/src/HAL/shared/servo.h

@ -67,8 +67,6 @@
* With DEACTIVATE_SERVOS_AFTER_MOVE wait SERVO_DELAY and detach. * With DEACTIVATE_SERVOS_AFTER_MOVE wait SERVO_DELAY and detach.
*/ */
#pragma once
#if IS_TEENSY32 #if IS_TEENSY32
#include "../HAL_TEENSY31_32/HAL_Servo_Teensy.h" #include "../HAL_TEENSY31_32/HAL_Servo_Teensy.h"
#elif IS_TEENSY35 || IS_TEENSY36 #elif IS_TEENSY35 || IS_TEENSY36

1
Marlin/src/feature/Max7219_Debug_LEDs.h

@ -41,7 +41,6 @@
* faster to do a Max7219_Set_Column() with a rotation of 90 or 270 degrees than to do * faster to do a Max7219_Set_Column() with a rotation of 90 or 270 degrees than to do
* a Max7219_Set_Row(). The opposite is true for rotations of 0 or 180 degrees. * a Max7219_Set_Row(). The opposite is true for rotations of 0 or 180 degrees.
*/ */
#pragma once
#ifndef MAX7219_ROTATE #ifndef MAX7219_ROTATE
#define MAX7219_ROTATE 0 #define MAX7219_ROTATE 0

1
Marlin/src/gcode/gcode.h

@ -274,7 +274,6 @@
* T0-T3 - Select an extruder (tool) by index: "T<n> F<units/min>" * T0-T3 - Select an extruder (tool) by index: "T<n> F<units/min>"
* *
*/ */
#pragma once
#include "../inc/MarlinConfig.h" #include "../inc/MarlinConfig.h"
#include "parser.h" #include "parser.h"

2
Marlin/src/lcd/extensible_ui/ui_api.h

@ -42,8 +42,6 @@
* location: <http://www.gnu.org/licenses/>. * * location: <http://www.gnu.org/licenses/>. *
****************************************************************************/ ****************************************************************************/
#pragma once
#include "../../inc/MarlinConfig.h" #include "../../inc/MarlinConfig.h"
namespace ExtUI { namespace ExtUI {

2
Marlin/src/libs/vector_3.h

@ -40,8 +40,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#pragma once
class matrix_3x3; class matrix_3x3;
struct vector_3 { struct vector_3 {

2
Marlin/src/module/delta.h

@ -25,8 +25,6 @@
* delta.h - Delta-specific functions * delta.h - Delta-specific functions
*/ */
#pragma once
extern float delta_height, extern float delta_height,
delta_endstop_adj[ABC], delta_endstop_adj[ABC],
delta_radius, delta_radius,

1
Marlin/src/module/motion.h

@ -27,7 +27,6 @@
* High-level motion commands to feed the planner * High-level motion commands to feed the planner
* Some of these methods may migrate to the planner class. * Some of these methods may migrate to the planner class.
*/ */
#pragma once
#include "../inc/MarlinConfig.h" #include "../inc/MarlinConfig.h"

2
Marlin/src/module/scara.h

@ -25,8 +25,6 @@
* scara.h - SCARA-specific functions * scara.h - SCARA-specific functions
*/ */
#pragma once
#include "../core/macros.h" #include "../core/macros.h"
extern float delta_segments_per_second; extern float delta_segments_per_second;

2
Marlin/src/pins/stm32/pins_BLACK_STM32F407VE.h

@ -27,8 +27,6 @@
* Shield - https://github.com/jmz52/Hardware * Shield - https://github.com/jmz52/Hardware
*/ */
#pragma once
#if !defined(STM32F4) && !defined(STM32F4xx) #if !defined(STM32F4) && !defined(STM32F4xx)
#error "Oops! Select an STM32F4 board in 'Tools > Board.'" #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
#elif HOTENDS > 2 || E_STEPPERS > 2 #elif HOTENDS > 2 || E_STEPPERS > 2

Loading…
Cancel
Save