You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,11 +76,11 @@ void StartTiming();
76
76
//获取自上次调用StartTiming以来所经过的毫秒数。
77
77
//Get MillisecondsElapsed after the last call of StartTiming.
78
78
template <uint8_t TimerCode>
79
-
static volatile uint16_t MillisecondsElapsed;
79
+
volatile uint32_t MillisecondsElapsed;
80
80
//设为false可以暂停计时,重新设为true可继续计时
81
81
//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.
82
82
template <uint8_t TimerCode>
83
-
static volatile bool Running;
83
+
volatile bool Running;
84
84
85
85
//在指定引脚上无限播放指定频率的音调
86
86
//Play a tone of FrequencyHz on PinCode endlessly.
0 commit comments