changed variables from static to extern for use in other functions

This commit is contained in:
hamza
2024-06-03 01:32:33 +03:00
parent f52abb8ef0
commit 757165c9bf
2 changed files with 10 additions and 7 deletions

View File

@ -64,9 +64,9 @@ typedef struct {
extern StateHandle state;
static bool relay_closed = 0;
static bool precharge_closed = 0;
static int16_t RELAY_BAT_SIDE_VOLTAGE;
static int16_t RELAY_ESC_SIDE_VOLTAGE;
static int16_t CURRENT_MEASUREMENT;
extern int16_t RELAY_BAT_SIDE_VOLTAGE;
extern int16_t RELAY_ESC_SIDE_VOLTAGE;
extern int16_t CURRENT_MEASUREMENT;
void sm_init();
void sm_update();