ソースを参照

Fix delay when yield longer than 1ms

main
PaulStoffregen 9年前
コミット
59a7b221fa
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      teensy3/pins_teensy.c

+ 1
- 1
teensy3/pins_teensy.c ファイルの表示

@@ -1100,7 +1100,7 @@ void delay(uint32_t ms)

if (ms > 0) {
while (1) {
if ((micros() - start) >= 1000) {
while ((micros() - start) >= 1000) {
ms--;
if (ms == 0) return;
start += 1000;

読み込み中…
キャンセル
保存