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
Revision 8:875d16362236, committed 2021-03-29
- 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 |
diff -r 0129730f8ad9 -r 875d16362236 main.cpp
--- 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);
+
}
}
}