diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
commit | cbc941282074856fc6179761b70a0c9879b0b64d (patch) | |
tree | ed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/common.c | |
parent | 324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff) | |
download | mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip |
update firmware to @319
Diffstat (limited to 'firmware/common.c')
-rw-r--r-- | firmware/common.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/firmware/common.c b/firmware/common.c index 9947c59..69f3c94 100644 --- a/firmware/common.c +++ b/firmware/common.c @@ -80,11 +80,17 @@ void common_parser(char *buf) void common_init(void) { - int i; + uint8_t i; for(i=1;i<=19;i++) - io_init(i); - for(i=26;i<=44;i++) - io_init(i); + { + io_init(i); + io_set_pin(i, 0); + } + for(i=24;i<=42;i++) + { + io_init(i); + io_set_pin(i, 0); + } } @@ -100,7 +106,7 @@ void common_hwdesc(void) answer[7] = 'p'; answer[8] = 'u';answer[9] = 's';answer[10] = '_'; #endif answer[11] = '0'; answer[12] = '1'; - answer[13] = 0x00; + answer[13] = 0; CommandAnswer(14); } |