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.
Revision 6:496eaf58c584, committed 2020-11-13
- Comitter:
- ttrist
- Date:
- Fri Nov 13 02:02:13 2020 +0000
- Parent:
- 5:d9d0cde6e71d
- Commit message:
- "int time_start" -> "uint32_t time_start"
Changed in this revision
| BusSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BusSerial.cpp Thu Nov 12 16:01:04 2020 +0000
+++ b/BusSerial.cpp Fri Nov 13 02:02:13 2020 +0000
@@ -43,7 +43,7 @@
bool BusSerial::getTimedBusSerial(uint8_t* container, uint8_t head_num, uint8_t data_quantity, int timeout)
{
// 受信開始時間記録
- int time_start = _timer->read_ms();
+ uint32_t time_start = _timer->read_ms();
for (uint8_t i = 0; i < data_quantity + 1; i++) container[i] = 0;
while (container[0] != head_num) {
@@ -91,7 +91,7 @@
bool BusSerial::getTimedBusSerial
(uint8_t* container, uint8_t head_num, uint8_t data_quantity, uint8_t footer_num, int timeout)
{
- int time_start = _timer->read_ms();
+ uint32_t time_start = _timer->read_ms();
for (uint8_t i = 0; i < data_quantity + 2; i++) container[i] = 0;
while (container[0] != head_num) {