From abfbb5db89d00ab29ac0c3ce9b767f787b01f49d Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 5 Sep 2020 08:49:19 -0400 Subject: [PATCH] set map array back to 8 values --- afsk/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index dccc5de7..f6a9e1ab 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -130,7 +130,7 @@ float batteryThreshold = 3.0, batteryVoltage; const char pythonCmd[] = "python3 /home/pi/CubeSatSim/python/voltcurrent.py "; char pythonStr[100], pythonConfigStr[100], busStr[10]; -int map[9] = { 0, 1, 2, 3, 4, 5, 6, 7, 0x45}; +int map[8] = { 0, 1, 2, 3, 4, 5, 6, 7}; /* struct SensorConfig { int fd; @@ -494,9 +494,6 @@ else map[BAT] = BUS; map[PLUS_Z] = BAT; map[MINUS_Z] = PLUS_Z; -// map[4] = MINUS_X; -// map[5] = BUS; - map[8] = 0x4a; // strcpy(busStr,"1 0"); batteryThreshold = 8.0; }