Simplified code a bit. Emulator does not work stable when replugging pixy.

This commit is contained in:
t-moe
2015-04-25 00:40:23 +02:00
parent 416883c15b
commit 3d1e4b2ef2
11 changed files with 24 additions and 51 deletions

View File

@@ -29,6 +29,10 @@ int pixy_frame_test();
//app event loop
void app_process() {
system_process(); //Let the system handle it's pending events
//Note: The only way to detect that pixy has been disconnected is if a command fails. There's no pixy_is_connected method yet :'(
if(!pixy_connected) { //Pixy not connected

View File

@@ -3,4 +3,4 @@
bool ll_system_init();
void ll_system_delay(uint32_t msec);
void ll_system_process();

View File

@@ -6,10 +6,10 @@ bool system_init() {
return ll_system_init();
}
void system_delay(uint32_t msec) {
ll_system_delay(msec);
}
void system_process() {
ll_system_process();
}

View File

@@ -3,3 +3,4 @@
bool system_init();
void system_delay(uint32_t msec);
void system_process();