baseline features - a little buggy
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Revision 2:cf4e61c051a4, committed 2021-04-10
- Comitter:
- robbiehuey
- Date:
- Sat Apr 10 02:08:02 2021 +0000
- Parent:
- 1:4421c1e849e9
- Commit message:
- hi
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4421c1e849e9 -r cf4e61c051a4 main.cpp --- a/main.cpp Fri Apr 09 20:44:48 2021 +0000 +++ b/main.cpp Sat Apr 10 02:08:02 2021 +0000 @@ -187,7 +187,7 @@ int index; while (curr != NULL) { fruit = (FRUIT*)(curr->data); - if ((fruit->box.topLeft.y > 127)&&(fruit->type != 0)) { + if ((fruit->box.topLeft.y > 127 - get_compost_tallest_height())&&(fruit->type != 0)) { index = (fruit->box.topLeft.x)/11; compost_add(index); fruit->status = FRUIT_SLICED;