aboutsummaryrefslogtreecommitdiff
path: root/src/survive_data.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-11-30 02:20:49 -0500
committercnlohr <lohr85@gmail.com>2016-11-30 02:20:49 -0500
commitc1542a78999791d9fefc6e0d2805494eb1d1bd44 (patch)
tree4869280925bd921bae0e6b207457b91bc277f3c0 /src/survive_data.c
parent1d0a3ef8b28e212eda4735da66f2f26e6c1a7cc5 (diff)
downloadlibsurvive-c1542a78999791d9fefc6e0d2805494eb1d1bd44.tar.gz
libsurvive-c1542a78999791d9fefc6e0d2805494eb1d1bd44.tar.bz2
Update style for reading the controllers.
Diffstat (limited to 'src/survive_data.c')
-rw-r--r--src/survive_data.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/survive_data.c b/src/survive_data.c
index 9635af7..de92a90 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -99,20 +99,14 @@ static void handle_watchman( int whichwatch, uint8_t * readdata )
break;
case 0xf2: //Touch
break;
- case 0xf4: //Analog
- break;
- case 0xf1: //Button down. Much more to do!
- break;
+ case 0xf3: //Button?
+ break; //...many more F's.
default:
- printf( "BN: %d %d %d %d %02x: ", whichwatch, time1, sensor_id, time2, type );
- for( i = 0; i < 26; i++ )
- printf( "%02x ", readdata[i] );
- printf("\n" );
//It's a light!
-/* printf( "WM: %d %d %d %d %02x: ", whichwatch, time1, sensor_id, time2, type );
+ printf( "WM: %3d %3d %3d %3d %02x: ", whichwatch, time1, sensor_id, time2, type );
for( i = 0; i < 26; i++ )
printf( "%02x ", readdata[i] );
- printf("\n" );*/
+ printf("\n" );
break;