![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: PsiSwarm/demo.cpp
- Revision:
- 1:f6356cf1cefc
- Parent:
- 0:8a5497a2e366
- Child:
- 2:a6214fd156ff
--- a/PsiSwarm/demo.cpp Sat Oct 03 22:48:50 2015 +0000 +++ b/PsiSwarm/demo.cpp Sat Oct 03 23:09:10 2015 +0000 @@ -224,7 +224,7 @@ if(sub_menu == 0) level = 0; break; case 4: // Info Menu - if(sub_menu == 3) level = 0; + if(sub_menu == 6) level = 0; break; case 5: // Demo Menu if(sub_menu == 1) { @@ -376,7 +376,7 @@ if(sub_menu == 0) level = 0; break; case 4: // Info Menu - if(sub_menu == 3) level = 0; + if(sub_menu == 6) level = 0; break; case 5: // Demo Menu if(sub_menu == 1) { @@ -435,7 +435,7 @@ else sub_menu --; break; case 4: //Info Menu - if(sub_menu == 0) sub_menu = 3; + if(sub_menu == 0) sub_menu = 6; else sub_menu --; break; case 5: //Demo Menu @@ -468,7 +468,7 @@ else sub_menu ++; break; case 4: //Info Menu - if(sub_menu == 3) sub_menu = 0; + if(sub_menu == 6) sub_menu = 0; else sub_menu ++; break; case 5: //Demo Menu @@ -535,7 +535,7 @@ if(sub_menu == 0) level = 0; break; case 4: // Info Menu - if(sub_menu == 3) level = 0; + if(sub_menu == 6) level = 0; break; case 5: // Demo Menu if(sub_menu == 4) level = 0; @@ -740,6 +740,15 @@ else sprintf(bottomline,"FIRMWARE: ?????"); break; case 3: + sprintf(bottomline,"PROG:%s",program_name); + break; + case 4: + sprintf(bottomline,"AUTH:%s",author_name); + break; + case 5: + sprintf(bottomline,"VER:%s",version_name); + break; + case 6: sprintf(bottomline,"EXIT"); break; }