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.
Diff: main.cpp
- Revision:
- 2:1ae5e25618e0
- Parent:
- 1:f52578243f96
- Child:
- 3:2c2276646a5c
--- a/main.cpp Sun Nov 15 15:19:11 2020 +0000
+++ b/main.cpp Sun Nov 15 15:23:20 2020 +0000
@@ -67,6 +67,9 @@
void PM_off(){
xbee.printf(" ");
}
+void PM_CM_alive(){ // PMのWDT用,生存信号送信関数(PMのWDT周期以下で送信する必要あり.)
+ xbee.printf("c");
+}
/* PCシリアル通信 */
@@ -184,9 +187,11 @@
while(1) {
log_loop_timer.reset();
log_loop_timer.start();
-
+
pc.printf("CM : %02d\n", kModuleID);
-
+
+ PM_CM_alive();
+
while(log_loop_timer.read() < 0.5f){
PM_receive();
}