diff options
author | jaseg <jaseg@jaseg.net> | 2013-12-26 19:16:56 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2013-12-26 19:16:56 +0100 |
commit | f2731bac95ebcd91a2a4b289fefa635ae7c34094 (patch) | |
tree | 8b2993b50ffe0187069938686ed99a4717ab5efa | |
parent | fb84b57628cbc63b2035378ad38108d38bea297a (diff) | |
download | matelight-f2731bac95ebcd91a2a4b289fefa635ae7c34094.tar.gz matelight-f2731bac95ebcd91a2a4b289fefa635ae7c34094.tar.bz2 matelight-f2731bac95ebcd91a2a4b289fefa635ae7c34094.zip |
Fixed crate indexing
-rw-r--r-- | firmware/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/main.c b/firmware/main.c index afe766e..a7a0436 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -55,10 +55,10 @@ #define CRATE_SIZE (CRATE_WIDTH*CRATE_HEIGHT) #define BUS_SIZE (CRATES_PER_BUS*CRATE_SIZE*BYTES_PER_PIXEL) unsigned const char const BOTTLE_MAP[CRATE_SIZE] = { - 0, 1, 2, 3, 4, - 19, 8, 7, 6, 5, + 17, 16, 15, 14, 13, 18, 9, 10, 11, 12, - 17, 16, 15, 14, 13 + 19, 8, 7, 6, 5, + 0, 1, 2, 3, 4 }; unsigned const char const CRATE_MAP[CRATE_COUNT] = { |