mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-19 10:22:44 +01:00
update keyboard code,followed updates from foriequal0
This commit is contained in:
@@ -22,6 +22,13 @@ void RateMeter::onInterrupt() {
|
||||
|
||||
void RateMeter::tick(millis_t delta) {
|
||||
cutoff.updateTime(delta);
|
||||
if (!cutoff.get()) {
|
||||
averageDelta += delta;
|
||||
}
|
||||
}
|
||||
|
||||
void RateMeter::expire() {
|
||||
cutoff.expire();
|
||||
}
|
||||
|
||||
uint16_t RateMeter::delta() const {
|
||||
|
||||
Reference in New Issue
Block a user