Skip to content

Commit b3dc2ae

Browse files
修复与代码不一致的文档
1 parent b49c9ef commit b3dc2ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ void StartTiming();
7676
//获取自上次调用StartTiming以来所经过的毫秒数。
7777
//Get MillisecondsElapsed after the last call of StartTiming.
7878
template <uint8_t TimerCode>
79-
static volatile uint16_t MillisecondsElapsed;
79+
volatile uint32_t MillisecondsElapsed;
8080
//设为false可以暂停计时,重新设为true可继续计时
8181
//Set to false can freeze MillisecondsElapsed from being ticked by the timer (lock the variable only, timer still running). Set to true to continue timing.
8282
template <uint8_t TimerCode>
83-
static volatile bool Running;
83+
volatile bool Running;
8484

8585
//在指定引脚上无限播放指定频率的音调
8686
//Play a tone of FrequencyHz on PinCode endlessly.

0 commit comments

Comments
 (0)