time cast to uint32_t before multiply

This commit is contained in:
doppelhub
2024-10-08 14:50:52 -04:00
parent 5eccdea3a0
commit 4b0906779b
4 changed files with 6 additions and 6 deletions

View File

@@ -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"
/*

View File

@@ -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);

View File

@@ -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)'

View File

@@ -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;
}