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.
Dependents: 2019_SwitchNode_AR ArmNode 2919_LineSensor 2019_MD ... more
Diff: Mycan.cpp
- Revision:
- 3:055c2d38132f
- Parent:
- 2:67a12201e80b
- Child:
- 4:7aa2809ad177
diff -r 67a12201e80b -r 055c2d38132f Mycan.cpp
--- a/Mycan.cpp Tue Jul 10 12:37:13 2018 +0000
+++ b/Mycan.cpp Mon Aug 06 05:40:22 2018 +0000
@@ -15,9 +15,9 @@
_expressAbsoluteValue();//絶対値にする関数
}
-void Mycan::send()
+bool Mycan::send()
{
- can.write(CANMessage(td_id, (char*)&td_data, 8));
+ return can.write(CANMessage(td_id, (char*)&td_data, 8));
}
void Mycan::read()