NagaokaRoboticsClub_mbedTeam / SerialMultiByte

Dependents:   Nucleo_NHK_2018_syudo_wheel a_team_R1370 Nucleo_NHK_2018_syudo_wheel 2018NHK_gaku_ver2 ... more

Files at this revision

API Documentation at this revision

Comitter:
tanabe2000
Date:
Thu Sep 13 15:25:28 2018 +0000
Parent:
4:31dbd7ea393b
Commit message:
??????????????

Changed in this revision

SerialMultiByte.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SerialMultiByte.cpp	Thu Sep 13 06:17:23 2018 +0000
+++ b/SerialMultiByte.cpp	Thu Sep 13 15:25:28 2018 +0000
@@ -39,7 +39,7 @@
     if(bufferPoint != 0xff) {
         ++bufferPoint;
     } else {
-        bufferPoint = 0;
+        bufferPoint = (255%bufferSize)+1;
     }
 
     ++receivedBytes;