Skip to content

Instantly share code, notes, and snippets.

@tomovwgti
Last active January 1, 2016 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomovwgti/8109469 to your computer and use it in GitHub Desktop.
Save tomovwgti/8109469 to your computer and use it in GitHub Desktop.
TOCOS TWE-LiteのシリアルアプリApp_Uart の受信側のプロンプトを無くします。
if (len == 0) {
// ハンドル名なし
// vfPrintf(&sSerStream, LB"[%08X:%d] ", sSerSeqRx.u32SrcAddr, sSerSeqRx.u8ReqNum);
sSerCmdOut.u16len -= 2; // 本文の長さに設定
} else {
// ハンドル名あり
// vfPrintf(&sSerStream, LB"[%s:%d] ", &sSerCmdOut.au8data[i+1], sSerSeqRx.u8ReqNum);
sSerCmdOut.u16len = i; // 本文の長さに設定
}
// 本文の出力
sSerCmdOut.vOutput(&sSerCmdOut, &sSerStream);
// プロンプトの表示
// vSerChatPrompt();
@tomovwgti
Copy link
Author

ToCoNet SDKはこちら

App_Uart version 1.0.6ベース Master.cの2590行目付近

  • ビルドターゲットは"TWE UART Application(2) (JN5164)"
  • リリース版でビルドするには、eclipseプロジェクトのApp_Uart/Master/Build/MakefileのTOCONET_DEBUG ?= 1をコメントアウト

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment