diff --git a/source/Core/BSP/Sequre/BSP.cpp b/source/Core/BSP/Sequre/BSP.cpp index 1043ae96..436cd22f 100644 --- a/source/Core/BSP/Sequre/BSP.cpp +++ b/source/Core/BSP/Sequre/BSP.cpp @@ -256,3 +256,7 @@ uint16_t getTipInertia() { return TIP_THERMAL_INERTIA; } void setBuzzer(bool on) {} void showBootLogo(void) { BootLogo::handleShowingLogo((uint8_t *)FLASH_LOGOADDR); } + +#ifdef CUSTOM_MAX_TEMP_C +TemperatureType_t getCustomTipMaxInC() { return MAX_TEMP_C; } +#endif \ No newline at end of file diff --git a/source/Core/BSP/Sequre/configuration.h b/source/Core/BSP/Sequre/configuration.h index e179d58b..6b955819 100644 --- a/source/Core/BSP/Sequre/configuration.h +++ b/source/Core/BSP/Sequre/configuration.h @@ -205,6 +205,7 @@ // Uses a HUB238 for PD negotiation like the S60, also has a buzzer. Feels like designed to share with S60 // Hold back left button for "DFU" +#define SOLDERING_TEMP 200 // Default soldering temp is 200.0 °C #define VOLTAGE_DIV 460 // Default divider scaler #define CALIBRATION_OFFSET 0 // Default adc offset in uV #define PID_POWER_LIMIT 70 // Sets the max pwm power limit @@ -228,7 +229,7 @@ #define TIP_THERMAL_INERTIA 128 // We use a large inertia value to smooth out the drive to the tip since its stupidly sensitive #define TIP_RESISTANCE 52 // PCB heater, measured at ~19C. Will shift by temp a decent amount - +#define CUSTOM_MAX_TEMP_C #define PROFILE_SUPPORT 1 // Soldering Profiles #define OLED_128x32 1 // Larger OLED #define OLED_FLIP 1 // Mounted upside down diff --git a/source/Core/Threads/MOVThread.cpp b/source/Core/Threads/MOVThread.cpp index aebec260..9739cd46 100644 --- a/source/Core/Threads/MOVThread.cpp +++ b/source/Core/Threads/MOVThread.cpp @@ -30,13 +30,6 @@ uint8_t accelInit = 0; TickType_t lastMovementTime = 0; // Order matters for probe order, some Acceleromters do NOT like bad reads; and we have a bunch of overlap of addresses void detectAccelerometerVersion() { - DetectedAccelerometerVersion = AccelType::Scanning; -#ifdef NO_ACCEL - setSettingValue(SettingsOptions::Sensitivity, 0); - DetectedAccelerometerVersion = AccelType::None; - return; -#endif - #ifdef ACCEL_MMA if (MMA8652FC::detect()) { if (MMA8652FC::initalize()) { @@ -146,6 +139,12 @@ inline void readAccelerometer(int16_t &tx, int16_t &ty, int16_t &tz, Orientation } } void startMOVTask(void const *argument __unused) { +#ifdef NO_ACCEL + DetectedAccelerometerVersion = AccelType::None; + for (;;) { + osDelay(2 * TICKS_SECOND); + } +#endif osDelay(TICKS_100MS / 5); // This is here as the BMA doesnt start up instantly and can wedge the I2C bus if probed too fast after boot detectAccelerometerVersion();