Update main.c battery prints

sim-fail-2
Alan Johnston 4 months ago committed by GitHub
parent e7fe85856a
commit 59afdf3853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -299,7 +299,7 @@ int main(int argc, char * argv[]) {
map[BAT] = BAT2; map[BAT] = BAT2;
map[PLUS_Z] = BAT; map[PLUS_Z] = BAT;
map[MINUS_Z] = PLUS_Z; map[MINUS_Z] = PLUS_Z;
snprintf(busStr, 10, "%d %d", i2c_bus1, test_i2c_bus(0)); snprintf(busStr, 10, "Bus test: %d %d", i2c_bus1, test_i2c_bus(0));
voltageThreshold = 8.0; voltageThreshold = 8.0;
// check for camera // check for camera
@ -591,7 +591,7 @@ int main(int argc, char * argv[]) {
if (token != NULL) { if (token != NULL) {
voltage[count1] = (float) atof(token); voltage[count1] = (float) atof(token);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
// printf("voltage: %f ", voltage[count1]); printf("voltage: %f ", voltage[count1]);
#endif #endif
token = strtok(NULL, space); token = strtok(NULL, space);
if (token != NULL) { if (token != NULL) {

Loading…
Cancel
Save

Powered by TurnKey Linux.