瀏覽代碼

Fix compiler warning

main
PaulStoffregen 5 年之前
父節點
當前提交
c4fe5e9303
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/Stream.cpp

+ 1
- 1
teensy3/Stream.cpp 查看文件

@@ -91,7 +91,7 @@ bool Stream::findUntil(const char *target, const char *terminator)
{
if(target == nullptr) return true;
size_t tlen = (terminator==nullptr)?0:strlen(terminator);
return findUntil(target, strlen(target), terminator, strlen(terminator));
return findUntil(target, strlen(target), terminator, tlen);
}

// reads data from the stream until the target string of the given length is found

Loading…
取消
儲存