mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 23:13:07 +01:00
intermediate: prepare for multiple grove configs
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#define _GWCONFIGITEM_H
|
||||
#include "WString.h"
|
||||
#include <vector>
|
||||
|
||||
class GwConfigHandler;
|
||||
class GwConfigInterface{
|
||||
public:
|
||||
@@ -79,4 +78,14 @@ class GwNmeaFilter{
|
||||
#define __XSTR(x) __STR(x)
|
||||
#define __STR(x) #x
|
||||
#define __MSG(x) _Pragma (__STR(message (x)))
|
||||
|
||||
template<typename F>
|
||||
class GwInitializer{
|
||||
public:
|
||||
using List=std::vector<F>;
|
||||
GwInitializer(List &l,F f){
|
||||
l.push_back(f);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user