fix: remove unused GPIO_values array, use auxVoltages instead
This commit is contained in:
parent
996a7f0581
commit
ba1c8c5905
@ -87,8 +87,6 @@ typedef struct {
|
|||||||
uint16_t sumOfCellMeasurements;
|
uint16_t sumOfCellMeasurements;
|
||||||
uint16_t refVoltage;
|
uint16_t refVoltage;
|
||||||
|
|
||||||
uint16_t GPIO_Values[MAXIMUM_GPIO];
|
|
||||||
|
|
||||||
uint32_t overVoltage;
|
uint32_t overVoltage;
|
||||||
uint32_t underVoltage;
|
uint32_t underVoltage;
|
||||||
|
|
||||||
|
@ -152,7 +152,15 @@ int main(void)
|
|||||||
modules[i].cellVoltages[14], modules[i].cellVoltages[15]);
|
modules[i].cellVoltages[14], modules[i].cellVoltages[15]);
|
||||||
|
|
||||||
// Print GPIO values
|
// Print GPIO values
|
||||||
debug_log(LOG_LEVEL_INFO, " GPIO values:");
|
debug_log(LOG_LEVEL_INFO, " GPIO voltages (mV):");
|
||||||
|
debug_log(LOG_LEVEL_INFO, " G0: %4d G1: %4d G2: %4d G3: %4d G4: %4d",
|
||||||
|
modules[i].auxVoltages[0], modules[i].auxVoltages[1],
|
||||||
|
modules[i].auxVoltages[2], modules[i].auxVoltages[3],
|
||||||
|
modules[i].auxVoltages[4]);
|
||||||
|
debug_log(LOG_LEVEL_INFO, " G5: %4d G6: %4d G7: %4d G8: %4d G9: %4d",
|
||||||
|
modules[i].auxVoltages[5], modules[i].auxVoltages[6],
|
||||||
|
modules[i].auxVoltages[7], modules[i].auxVoltages[8],
|
||||||
|
modules[i].auxVoltages[9]);
|
||||||
debug_log(LOG_LEVEL_INFO, " G0: %4d G1: %4d G2: %4d G3: %4d G4: %4d",
|
debug_log(LOG_LEVEL_INFO, " G0: %4d G1: %4d G2: %4d G3: %4d G4: %4d",
|
||||||
modules[i].GPIO_Values[0], modules[i].GPIO_Values[1],
|
modules[i].GPIO_Values[0], modules[i].GPIO_Values[1],
|
||||||
modules[i].GPIO_Values[2], modules[i].GPIO_Values[3],
|
modules[i].GPIO_Values[2], modules[i].GPIO_Values[3],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user