projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
ac39b7b
)
Commit
765045861130679e864f4ae650788da9aa1a06ee
author
Michel Pollet
<buserror@gmail.com>
Sat, 25 Feb 2012 10:05:59 +0000
(10:05 +0000)
committer
Michel Pollet
<buserror@gmail.com>
Sat, 25 Feb 2012 10:18:13 +0000
(10:18 +0000)
Demo was trying to exit, but the harness wasn't
Signed-off-by: Michel Pollet <buserror@gmail.com>
examples/board_i2ctest/i2ctest.c
patch
|
blob
|
history
|
download
diff --git
a/examples/board_i2ctest/i2ctest.c
b/examples/board_i2ctest/i2ctest.c
index 9d439324841ab3f34439fa9b3b96eb48d1f0a674..7cb80d35cd387fd3c6242b4120baabf2081b6a6c 100644
(file)
--- a/
examples/board_i2ctest/i2ctest.c
+++ b/
examples/board_i2ctest/i2ctest.c
@@
-81,6
+81,9
@@
int main(int argc, char *argv[])
printf( "Demo launching:\n");
- while (1)
- avr_run(avr);
+ while (1) {
+ int state = avr_run(avr);
+ if ( state == cpu_Done || state == cpu_Crashed)
+ break;
+ }
}