mirror of
https://github.com/doppelhub/Honda_Insight_LiBCM.git
synced 2026-06-10 23:47:28 -04:00
time cast to uint32_t before multiply
This commit is contained in:
@@ -167,8 +167,8 @@ void printHelp(void)
|
||||
"\n -'$LOOP: LiBCM loop period. '$LOOP=___' to set (1 to 255 ms)"
|
||||
"\n -'$SCIms': period between BATTSCI frames. '$SCIms=___' to set (0 to 255 ms)"
|
||||
"\n"
|
||||
"\nLiBCM sends the following debug characters each time:"
|
||||
"\n -'@': isoSPI error occurs"
|
||||
"\nDebug characters:"
|
||||
"\n -'@': isoSPI error occurred"
|
||||
"\n -'*': loop period exceeded"
|
||||
"\n"
|
||||
/*
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#define INPUT_FLAG_INSIDE_COMMENT 0x01
|
||||
|
||||
void USB_begin(void);
|
||||
void USB_end(void);
|
||||
void USB_begin(void);
|
||||
void USB_end(void);
|
||||
|
||||
uint8_t USB_userInterface_getUserInput(void);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#define PERIOD_TO_DISABLE_SLEEP_AFTER_USB_DATA_RECEIVED_ms ((uint32_t)60000)
|
||||
|
||||
#define PERIOD_TO_DISABLE_TURNOFF_AFTER_CHARGER_UNPLUGGED_hours 4 //prevents turnoff during brief AC power outage
|
||||
#define PERIOD_TO_DISABLE_TURNOFF_AFTER_CHARGER_UNPLUGGED_hours 4 //prevent turnoff during brief AC power outage
|
||||
#define PERIOD_TO_DISABLE_TURNOFF_AFTER_CHARGER_UNPLUGGED_ms (((uint32_t)1000 * 60 * 60) * PERIOD_TO_DISABLE_TURNOFF_AFTER_CHARGER_UNPLUGGED_hours)
|
||||
|
||||
// UNKNOWN_INTERRUPT 0 //specifically not defined //see explanation in 'ISR(PCINT1_vect)'
|
||||
|
||||
@@ -103,7 +103,7 @@ bool time_hasKeyBeenOffLongEnough_toTurnOffLiBCM(void)
|
||||
{
|
||||
bool keyOffForLongEnough = false;
|
||||
|
||||
if ((millis() - time_latestKeyOff_ms_get()) > (POWEROFF_DELAY_AFTER_KEYOFF_PACK_EMPTY_MINUTES * 60000))
|
||||
if ((millis() - time_latestKeyOff_ms_get()) > (POWEROFF_DELAY_AFTER_KEYOFF_PACK_EMPTY_MINUTES * (uint32_t)60000))
|
||||
{
|
||||
keyOffForLongEnough = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user