Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;