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: 2022_FEPTX-PS4 2022_FEPTX-TokiPS4
Diff: FEP_TX22.cpp
- Revision:
- 1:303170592014
- Parent:
- 0:729795414ebd
--- a/FEP_TX22.cpp Wed Oct 05 01:05:52 2022 +0000
+++ b/FEP_TX22.cpp Thu Oct 06 08:06:20 2022 +0000
@@ -2,7 +2,7 @@
* @file FEP_TX22.cpp
* @brief 送信用FEPライブラリ
* @author 安澤瑠
- * @date 22/10/4
+ * @date 22/10/6
*/
#include "FEP_TX22.h"
@@ -12,16 +12,17 @@
addr = addr_;
}
-int8_t FEP_TX22::SendData(uint8_t *data)
+int8_t FEP_TX22::SendData(uint8_t *data, uint8_t datalen)
{
uint8_t sendindex; // index of 'data'
- printf("@TBN%03d%03d", addr, DATANUM); // send comand
- for (sendindex=0; sendindex<DATANUM; sendindex++) {
+ printf("@TBN%03d%03d", addr, datalen); // send comand
+ for (sendindex=0; sendindex<datalen; sendindex++) {
putc(data[sendindex]); //
}
printf("\r\n"); // <cr><lf>
return 0;
// return GetResponse();
+// 他にgetc()をループさせている場合に不具合確認
}
int8_t FEP_TX22::GetResponse()