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-04 17:11:01 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
8b0eb98f047b68353bdb1c8144706033832ea528
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>
class Throttle
{
public:
static bool execute(uint32_t *lastExecutionMs, uint32_t minumumIntervalMs, void (*func)(void), void (*onDefer)(void) = NULL);
Refactor and consolidate time window logic (#4826) * Refactor and consolidate windowing logic * Trunk * Fixes * More * Fix braces and remove unused now variables. There was a brace in src/mesh/RadioLibInterface.cpp that was breaking compile on some architectures. Additionally, there were some brace errors in src/modules/Telemetry/AirQualityTelemetry.cpp src/modules/Telemetry/EnvironmentTelemetry.cpp src/mesh/wifi/WiFiAPClient.cpp Move throttle include in WifiAPClient.cpp to top. Add Default.h to sleep.cpp rest of files just remove unused now variables. * Remove a couple more meows --------- Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-23 08:58:14 -05:00
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: 1060ms Template: 1ms
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