diff --git a/cw/cw_main.c b/cw/cw_main.c index c7b73bb7..390bc7c5 100644 --- a/cw/cw_main.c +++ b/cw/cw_main.c @@ -77,9 +77,6 @@ int tempSensor, xPlusSensor, yPlusSensor, zPlusSensor, battCurrentSensor; int main(void) { - static char cmdbuffer[1000]; - static char mopower[64][14]; - static char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45. uint8_t retVal; int tlm[7][5]; int i,j; @@ -515,6 +512,9 @@ int add_dot(uint8_t *msg, int number) { return counter; } int get_tlm(int tlm[][5]) { + static char cmdbuffer[1000]; + static char mopower[64][14]; + static char ina219[16][20]; // voltage, currents, and power from the INA219 current sensors x4a, x40, x41, x44, and x45. // Read MoPower UPS data FILE* file = popen("mpcmd show data 2>&1", "r");