mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Make conflicting globals static
This commit is contained in:
parent
742650268c
commit
2d30370777
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue