Update cw_main.c

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent cafba72f7f
commit 0aaa45dcc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");

Loading…
Cancel
Save

Powered by TurnKey Linux.