Apply #pragma once, misc cleanup (#12322)
* Apply #pragma once in headers * Adjust some thermistors formatting * Misc cleanup and formatting
This commit is contained in:
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __BUZZER_H__
|
||||
#define __BUZZER_H__
|
||||
#pragma once
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
|
||||
@ -123,5 +121,3 @@ class Buzzer {
|
||||
#define BUZZ(d,f) NOOP
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __CIRCULARQUEUE_H__
|
||||
#define __CIRCULARQUEUE_H__
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -141,5 +139,3 @@ class CircularQueue {
|
||||
return this->buffer.count;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef HEX_PRINT_ROUTINES_H
|
||||
#define HEX_PRINT_ROUTINES_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -46,5 +44,3 @@ void print_hex_address(const void * const w);
|
||||
#else
|
||||
typedef uint16_t ptr_int_t;
|
||||
#endif
|
||||
|
||||
#endif // HEX_PRINT_ROUTINES_H
|
||||
|
@ -19,6 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Incremental Least Squares Best Fit By Roxy and Ed Williams
|
||||
@ -32,9 +33,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _LEAST_SQUARES_FIT_H_
|
||||
#define _LEAST_SQUARES_FIT_H_
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
#include <math.h>
|
||||
|
||||
@ -83,5 +81,3 @@ void inline incremental_LSF(struct linear_fit_data *lsf, const float &x, const f
|
||||
}
|
||||
|
||||
int finish_incremental_LSF(struct linear_fit_data *);
|
||||
|
||||
#endif // _LEAST_SQUARES_FIT_H_
|
||||
|
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __NOZZLE_H__
|
||||
#define __NOZZLE_H__
|
||||
#pragma once
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
#include "point_t.h"
|
||||
@ -90,5 +88,3 @@ class Nozzle {
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // __NOZZLE_H__
|
||||
|
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __PRIVATE_SPI_H__
|
||||
#define __PRIVATE_SPI_H__
|
||||
#pragma once
|
||||
|
||||
#include "softspi.h"
|
||||
#include <stdint.h>
|
||||
@ -53,5 +51,3 @@ class SPIclass<MISO_PIN, MOSI_PIN, SCK_PIN> {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // __PRIVATE_SPI_H__
|
||||
|
@ -19,9 +19,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef STOPWATCH_H
|
||||
#define STOPWATCH_H
|
||||
#pragma once
|
||||
|
||||
// Print debug messages with M111 S2 (Uses 156 bytes of PROGMEM)
|
||||
//#define DEBUG_STOPWATCH
|
||||
@ -116,5 +114,3 @@ class Stopwatch {
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // STOPWATCH_H
|
||||
|
Reference in New Issue
Block a user