SSSRC OPUSAT-II / Mbed 2 deprecated Register_set

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
KINU
Date:
Mon Mar 29 01:43:40 2021 +0000
Parent:
7:0129730f8ad9
Commit message:
register_set

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Mar 26 07:36:05 2021 +0000
+++ b/main.cpp	Mon Mar 29 01:43:40 2021 +0000
@@ -48,12 +48,12 @@
         if(key == '0' || key == '3') {
             tmp =  reg0 >> 27; //この行と次の行でレジスタのデータの部分を全て0にしている
             tmp = tmp << 27;
-            
+
             if(key == '0')
-            freq_bit = binary(calsat_freq)<<4;
+                freq_bit = binary(calsat_freq)<<4;
             if(key == '3')
-            freq_bit = binary(human_freq)<<4;
-            
+                freq_bit = binary(human_freq)<<4;
+
             tmp |= freq_bit;
             register_data_array[2] = tmp;
 
@@ -248,8 +248,8 @@
             double calsat_freq = tmp.packet(c);
             if(pc.readable()) {
                 char key = pc.getc();
-                    tmp.check(key,calsat_freq);
-                    
+                tmp.check(key,calsat_freq);
+
             }
         }
     }