Takeuchi Issei
/
Serial_Writer-re
Serial_Writerの受信側
Diff: Serial_Writer.h
- Revision:
- 2:9e785d92712d
- Parent:
- 1:ace5fce2d493
- Child:
- 6:657302a3a908
diff -r ace5fce2d493 -r 9e785d92712d Serial_Writer.h --- a/Serial_Writer.h Fri May 07 08:58:40 2021 +0000 +++ b/Serial_Writer.h Fri May 07 09:27:44 2021 +0000 @@ -1,8 +1,3 @@ -/*--------------------------- - -Author:Issaimaru - -----------------------------*/ #ifndef SERIAL_WRITER #define SERIAL_WRITER #include <mbed.h> @@ -39,8 +34,8 @@ for (int _byte=num_0-1;_byte>=0;p++,_byte--)get[k]|=buffer[p]<<(8*_byte); } return 0;//正常終了 - }else return -1;//異常終了1(正しく受信していない) - }else return -2;//異常終了2(受信しない) + }else return -1;//異常終了1(正しく受信できていない) + }else return -2;//異常終了2(受信するものがない) } private: