yuhang zhu / Mbed 2 deprecated ADAM_menu

Dependencies:   mbed

Revision:
13:8d9c273b607d
Parent:
12:5e4cba1182ab
Child:
14:fb67a8b1d1a5
--- a/main.cpp	Sun Jul 14 22:38:44 2013 +0000
+++ b/main.cpp	Sun Jul 14 23:21:15 2013 +0000
@@ -217,8 +217,8 @@
             case MODE_DISPLAY:
                 
                 pc.printf("Phase shift value for channel 1 is %d degrees\n", cha1_pha*-7);
+                pc.printf("Attentuation for channel 1 is %.1f dB\n", cha1_amp*5.0/10.0);
                 pc.printf("Phase shift value for channel 2 is %d degrees\n", cha2_pha*-7);
-                pc.printf("Attentuation for channel 1 is %.1f dB\n", cha1_amp*5.0/10.0);
                 pc.printf("Attentuation for channel 2 is %.1f dB\n", cha2_amp*5.0/10.0);
                 pc.printf("%s", msg_ret);
                 pc.getc();
@@ -236,8 +236,8 @@
             case MODE_SEND:  //In sending mode, display and send through SPI
                 
                 pc.printf("Phase shift value for channel 1 is %d degrees\n", cha1_pha*-7);
+                pc.printf("Attentuation for channel 1 is %.1f dB\n", cha1_amp*5.0/10.0);
                 pc.printf("Phase shift value for channel 2 is %d degrees\n", cha2_pha*-7);
-                pc.printf("Attentuation for channel 1 is %.1f dB\n", cha1_amp*5.0/10.0);
                 pc.printf("Attentuation for channel 2 is %.1f dB\n", cha2_amp*5.0/10.0);
                 pc.printf("\nSPI bit stream:\n");
                 for(i=15; i>=0; i--)