speeduino/speeduino
Daniel Tobias e4909f441d
couple of signed overflow fixes (#519)
* the TS_CMD_VSS_RATIO* id values overflow signed 16 bit int on avr

switch to unsigned 16 bit value

define TS_CMD_VSS_60KMH  39168 //0x99x00
define TS_CMD_VSS_RATIO1 39169
define TS_CMD_VSS_RATIO2 39170
define TS_CMD_VSS_RATIO3 39171
define TS_CMD_VSS_RATIO4 39172
define TS_CMD_VSS_RATIO5 39173
define TS_CMD_VSS_RATIO6 39174

* make sure we don't overflow and accidentally set negative timing

currentStatus.advance can only hold a signed 8 bit value

* make sure we can't have a negative multiplier
2021-02-04 13:10:35 +11:00
..
src Fix pin 54 selection (#511) 2021-02-02 10:00:04 +11:00
SD_logger.h Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
SD_logger.ino Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
TS_CommandButtonHandler.h couple of signed overflow fixes (#519) 2021-02-04 13:10:35 +11:00
TS_CommandButtonHandler.ino couple of signed overflow fixes (#519) 2021-02-04 13:10:35 +11:00
acc_mc33810.h Add stubs for the MC33810 2020-11-09 13:06:23 +11:00
acc_mc33810.ino Add stubs for the MC33810 2020-11-09 13:06:23 +11:00
auxiliaries.h Fix for 'sticking' VVT output 2020-12-11 12:50:13 +11:00
auxiliaries.ino Fix for 'sticking' VVT output 2020-12-11 12:50:13 +11:00
board_avr2560.h Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
board_avr2560.ino STM32 jump to DFU bootloader (#485) 2020-12-03 09:24:15 +11:00
board_stm32_generic.h Fix building stm32 f401 (#489) 2020-12-08 00:43:01 +11:00
board_stm32_generic.ino STM32 jump to DFU bootloader (#485) 2020-12-03 09:24:15 +11:00
board_stm32_official.h Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
board_stm32_official.ino Initial layout work on RTC and SD 2021-01-22 16:16:30 +11:00
board_teensy35.h Fix pin 54 selection (#511) 2021-02-02 10:00:04 +11:00
board_teensy35.ino STM32 jump to DFU bootloader (#485) 2020-12-03 09:24:15 +11:00
board_teensy41.h Fix pin 54 selection (#511) 2021-02-02 10:00:04 +11:00
board_teensy41.ino STM32 jump to DFU bootloader (#485) 2020-12-03 09:24:15 +11:00
board_template.h Fix pin 54 selection (#511) 2021-02-02 10:00:04 +11:00
board_template.ino STM32 jump to DFU bootloader (#485) 2020-12-03 09:24:15 +11:00
cancomms.h Fix compiling for atmega2561 and add profile for it 2020-05-21 15:42:02 +10:00
cancomms.ino STM32 CAN-bus library fixes. (#503) 2021-01-20 17:32:03 +11:00
comms.h Remove fullStatus array for comms 2021-02-02 13:14:47 +11:00
comms.ino Remove RTC from mega2560 build 2021-02-04 12:22:30 +11:00
corrections.h Fix corrections unit test 2021-01-23 15:28:20 +11:00
corrections.ino Fix corrections unit test 2021-01-23 15:28:20 +11:00
crankMaths.h Fix MISRA violations (#268) 2019-10-22 11:49:07 +10:00
crankMaths.ino Prevent interrupts when calculating tooth to tooth time (Resolves #430) 2020-08-08 09:53:26 +10:00
decoders.h [Decoder] Add Weber-Marelli pattern (#400) 2020-08-23 08:56:35 +10:00
decoders.ino Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
display.h Move to PlatformIO for project layout 2017-02-06 20:56:46 +11:00
display.ino Remove some old display code that is no longer used 2017-02-08 15:28:27 +11:00
engineProtection.h Mostly complete engine protection (excl AFR) 2020-06-06 14:27:46 +10:00
engineProtection.ino Only allow the oil pressure protection to enable if the oil pressure input is actually on 2020-07-07 16:47:28 +10:00
errors.h Move to PlatformIO for project layout 2017-02-06 20:56:46 +11:00
errors.ino Flag an error if an invalid MAP reading is calculated 2020-05-22 15:26:20 +10:00
globals.h Remove fullStatus array for comms 2021-02-02 13:14:47 +11:00
globals.ino Remove fullStatus array for comms 2021-02-02 13:14:47 +11:00
idle.h Closed loop idle improve (#481) 2020-12-02 08:37:58 +11:00
idle.ino Closed loop idle improve (#481) 2020-12-02 08:37:58 +11:00
init.h Introduce init.ino to help clean up speeduino.ino 2019-01-11 17:25:07 +11:00
init.ino Fix pin 54 selection (#511) 2021-02-02 10:00:04 +11:00
logger.h Major revamp of unit testing framework 2020-11-19 21:38:00 +11:00
logger.ino Pr/435 (#445). Closes #435 2020-08-23 08:27:44 +10:00
maths.h Change stm32 boards to use 10-bit ADC and match other boards 2020-08-10 08:54:36 +10:00
maths.ino Big MISRA cleanup 2019-07-08 17:56:02 +10:00
rtc_common.h Change name of rtc.h/.ino files to avoid conflict for stm32 2021-01-23 08:49:44 +11:00
rtc_common.ino Remove RTC from mega2560 build 2021-02-04 12:22:30 +11:00
scheduledIO.h Further work unifying the MC33810 build. Complete but needs testing 2020-12-01 18:12:39 +11:00
scheduledIO.ino Further work unifying the MC33810 build. Complete but needs testing 2020-12-01 18:12:39 +11:00
scheduler.h Fix building stm32 f401 (#489) 2020-12-08 00:43:01 +11:00
scheduler.ino Potential fix for new ignition mode on channels 4+ 2020-12-07 17:08:47 +11:00
secondaryTables.h Separate logic for secondary fuel and ignition tables 2020-10-22 11:21:48 +11:00
secondaryTables.ino couple of signed overflow fixes (#519) 2021-02-04 13:10:35 +11:00
sensors.h Add AE check to see whether MAP_DOT or TPS_DOT are increasing 2021-01-22 16:31:14 +11:00
sensors.ino Bug fix and small improvement for local aux input channels (#398) 2020-08-18 14:51:32 +10:00
speeduino.h refactor calculateIgnitionAngles (#491) 2020-12-15 13:00:29 +11:00
speeduino.ino Missed file from last commit 2021-02-02 15:45:13 +11:00
storage.h Fix for excessive EEPROM writes causing disconnect when loading tune onto blank board 2021-02-03 11:51:17 +11:00
storage.ino Fix for excessive EEPROM writes causing disconnect when loading tune onto blank board 2021-02-03 11:51:17 +11:00
table.h Move from using malloc() to a fixed heap size for 3d table. Closes #291 2021-02-02 15:41:04 +11:00
table.ino Move from using malloc() to a fixed heap size for 3d table. Closes #291 2021-02-02 15:41:04 +11:00
timers.h Fix building stm32 f401 (#489) 2020-12-08 00:43:01 +11:00
timers.ino Serial performance tweaks. Remove uneeded data rate variable 2020-10-19 15:22:19 +11:00
updates.h Begin some work on warnings cleanup 2018-07-19 17:35:35 +10:00
updates.ino Fix pages 13 and 14 EEPROM allocation (#487) 2021-02-02 09:41:51 +11:00
utilities.h Added pinIsReserved macro (#479) 2020-12-02 08:59:44 +11:00
utilities.ino Remove fullStatus array for comms 2021-02-02 13:14:47 +11:00