Parse MSP messages from the backpack while TX is in mavlink mode (#2883)
[ExpressLRS.git] / src / include / deferred.h
blob35d3e0c7564ca226316824e777a317be2c5519af
1 #pragma once
3 #include <functional>
5 void deferExecutionMicros(unsigned long us, std::function<void()> f);
6 void executeDeferredFunction(unsigned long now);
8 static inline void deferExecutionMillis(unsigned long ms, std::function<void()> f)
10 deferExecutionMicros(ms * 1000, f);