diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
commit | 5d9d373a959271b498710817d08c2ea8e153aa6e (patch) | |
tree | 6867e887454a850b4e15616000ef342a1c661c7e /firmware/common.c | |
parent | 35a36b0a6c69ce136fd6ea2a203d34e48e1291e8 (diff) | |
download | mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.tar.gz mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.zip |
correct firmware??
Diffstat (limited to 'firmware/common.c')
-rw-r--r-- | firmware/common.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/firmware/common.c b/firmware/common.c index 69f3c94..9947c59 100644 --- a/firmware/common.c +++ b/firmware/common.c @@ -80,17 +80,11 @@ void common_parser(char *buf) void common_init(void) { - uint8_t i; + int i; for(i=1;i<=19;i++) - { - io_init(i); - io_set_pin(i, 0); - } - for(i=24;i<=42;i++) - { - io_init(i); - io_set_pin(i, 0); - } + io_init(i); + for(i=26;i<=44;i++) + io_init(i); } @@ -106,7 +100,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] = 0; + answer[13] = 0x00; CommandAnswer(14); } |