diff options
author | Josh Allen <axlecrusher@gmail.com> | 2017-02-27 21:30:44 -0500 |
---|---|---|
committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-27 21:30:44 -0500 |
commit | 711a55ec79fefbefdc3527c89742acf622aaec3c (patch) | |
tree | f087cb3e592aa5cabc5c7b3d281260f4657ad671 /calibrate.c | |
parent | e8d696e03128242be33eb0734addee645e894635 (diff) | |
parent | 51751d4a9f407f526de2b626d44e14690fbef004 (diff) | |
download | libsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.gz libsurvive-711a55ec79fefbefdc3527c89742acf622aaec3c.tar.bz2 |
Merge branch 'master' of github.com:cnlohr/libsurvive
Diffstat (limited to 'calibrate.c')
-rw-r--r-- | calibrate.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/calibrate.c b/calibrate.c index 9c01e8a..a04c269 100644 --- a/calibrate.c +++ b/calibrate.c @@ -20,11 +20,11 @@ void HandleKey( int keycode, int bDown ) if( keycode == 'O' || keycode == 'o' ) { - survive_usb_send_magic(ctx,1); + survive_send_magic(ctx,1,0,0); } if( keycode == 'F' || keycode == 'f' ) { - survive_usb_send_magic(ctx,0); + survive_send_magic(ctx,0,0,0); } } @@ -42,6 +42,7 @@ int buffertimeto[32*3]; void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int timeinsweep, uint32_t timecode, uint32_t length ) { +// if( timeinsweep < 0 ) return; survive_default_light_process( so, sensor_id, acode, timeinsweep, timecode, length ); if( acode == -1 ) return; @@ -97,6 +98,10 @@ void my_angle_process( struct SurviveObject * so, int sensor_id, int acode, uint void * GuiThread( void * v ) { short screenx, screeny; + CNFGBGColor = 0x000000; + CNFGDialogColor = 0x444444; + CNFGSetup( "Survive GUI Debug", 640, 480 ); + while(1) { CNFGHandleInput(); @@ -151,9 +156,6 @@ int main() survive_cal_install( ctx ); - CNFGBGColor = 0x000000; - CNFGDialogColor = 0x444444; - CNFGSetup( "Survive GUI Debug", 640, 480 ); OGCreateThread( GuiThread, 0 ); @@ -167,5 +169,6 @@ int main() { //Do stuff. } + printf( "Returned\n" ); } |