From c1542a78999791d9fefc6e0d2805494eb1d1bd44 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Wed, 30 Nov 2016 02:20:49 -0500 Subject: Update style for reading the controllers. --- src/survive_data.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/survive_data.c') 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; -- cgit v1.2.3