Make conflicting globals static

This commit is contained in:
Jaakko Haakana 2025-06-18 20:52:01 +03:00
parent 742650268c
commit 2d30370777
2 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ const int OFF = 0;
#define PWM_ON_DUTY 1023
#define PWM_Positive_Channel 0
#define PWM_Negative_Channel 1
unsigned long prechargeStartTime = 0;
static unsigned long prechargeStartTime = 0;
unsigned long negativeStartTime = 0;
unsigned long prechargeCompletedTime = 0;
unsigned long timeSpentInFaultedMode = 0;

View file

@ -18,9 +18,9 @@
#define ON 1
#define OFF 0
#endif
unsigned long prechargeStartTime = 0;
static unsigned long prechargeStartTime = 0;
static uint32_t freq = Precharge_default_PWM_Freq;
uint16_t delta_freq = 1;
static uint16_t delta_freq = 1;
static int32_t prev_external_voltage = 20000;
// Initialization functions