Merge pull request #3 from sgleadow/development

Fixes to number of arguments checking and added git ignore file
This commit is contained in:
Greg Hughes 2011-11-05 02:19:09 -07:00
commit e6d623252a
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
demo
demo.app
fruitstrap

View File

@ -366,7 +366,7 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar
}
int main(int argc, char *argv[]) {
if (argc < 2 || argc > 3) {
if (argc < 2 || argc > 4) {
printf("usage: %s [-d] <app> [device_id]\n", argv[0]);
exit(1);
}