Logo
Explore Help
Register Sign In
rbxii3/firmware
1
0
Fork 0
You've already forked firmware
mirror of https://github.com/meshtastic/firmware.git synced 2026-01-23 10:17:37 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
33ae3777a377cf564eec2fc9acf1f21088201221
firmware/src/mesh/Throttle.h

10 lines
294 B
C
Raw Normal View History

Added one minute throttling to NodeDB save to disk (#3648) * Added one minute throttling to NodeDB * Derp
2024-04-18 14:20:39 -05:00
#pragma once
#include <cstddef>
#include <cstdint>
Revert "add a .clang-format file (#9154)" (#9172) I thought git would be smart enough to understand all the whitespace changes but even with all the flags I know to make it ignore theses it still blows up if there are identical changes on both sides. I have a solution but it require creating a new commit at the merge base for each conflicting PR and merging it into develop. I don't think blowing up all PRs is worth for now, maybe if we can coordinate this for V3 let's say. This reverts commit 0d11331d185a60adf84e64ec98642baf6a15a95a.
2026-01-04 12:15:53 +01:00
class Throttle
{
public:
static bool execute(uint32_t *lastExecutionMs, uint32_t minumumIntervalMs, void (*func)(void), void (*onDefer)(void) = NULL);
static bool isWithinTimespanMs(uint32_t lastExecutionMs, uint32_t intervalMs);
Added one minute throttling to NodeDB save to disk (#3648) * Added one minute throttling to NodeDB * Derp
2024-04-18 14:20:39 -05:00
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 3304ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API