SSSUP / Mbed 2 deprecated CanSat_Release_Mechanism-Controller

Dependencies:   mbed BMP180

Revision:
2:76f6a32f9404
Parent:
1:3d4042d58038
Child:
3:52396b1b5867
--- a/main.cpp	Tue Dec 15 07:21:08 2020 +0000
+++ b/main.cpp	Tue Dec 15 20:45:56 2020 +0000
@@ -157,7 +157,9 @@
     while(1) {
         int timer = 0;
         int bb = button;
+        bool deploy = false;
         while(!bb){
+            deploy = true;
             led_button = 1;
             if(timer == 0){
                 lcd_setCursor(0,0);
@@ -201,6 +203,13 @@
             timer++;
             bb = button;
         }
+        if(deploy){
+            lcd_setCursor(0,0);
+            lcd_printStr("        ");
+            lcd_setCursor(0,1);
+            lcd_printStr("        ");
+            contrast = 35;
+        }
         led_button = 0;
         //buf[0] = '0';
         while(xbee.readable()==0) {