0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-08-13 08:52:01 +00:00

🎨 Indent temp structs

This commit is contained in:
Scott Lahteine 2023-06-27 20:33:57 -05:00
parent a5ac50fcbf
commit 46b5753f56

View file

@ -177,7 +177,7 @@ typedef struct { float p, i, d, c, f; } raw_pidcf_t;
/// PID classes that implement these features are expected to override these methods /// PID classes that implement these features are expected to override these methods
/// Since the finally used PID class is typedef-d, there is no need to use virtual functions /// Since the finally used PID class is typedef-d, there is no need to use virtual functions
template<int MIN_POW, int MAX_POW> template<int MIN_POW, int MAX_POW>
struct PID_t{ struct PID_t {
protected: protected:
bool pid_reset = true; bool pid_reset = true;
float temp_iState = 0.0f, temp_dState = 0.0f; float temp_iState = 0.0f, temp_dState = 0.0f;
@ -415,10 +415,10 @@ typedef struct { float p, i, d, c, f; } raw_pidcf_t;
// A temperature sensor // A temperature sensor
typedef struct TempInfo { typedef struct TempInfo {
private: private:
raw_adc_t acc; raw_adc_t acc;
raw_adc_t raw; raw_adc_t raw;
public: public:
celsius_float_t celsius; celsius_float_t celsius;
inline void reset() { acc = 0; } inline void reset() { acc = 0; }
inline void sample(const raw_adc_t s) { acc += s; } inline void sample(const raw_adc_t s) { acc += s; }