mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
#19: add help tab, allow to set the help URL with the HELP_URL capability
This commit is contained in:
@@ -129,4 +129,7 @@ class GwApi{
|
||||
#ifndef DECLARE_CAPABILITY
|
||||
#define DECLARE_CAPABILITY(name,value)
|
||||
#endif
|
||||
#ifndef DECLARE_STRING_CAPABILITY
|
||||
#define DECLARE_STRING_CAPABILITY(name,value)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -46,4 +46,6 @@ DECLARE_CAPABILITY(testboard2,true);
|
||||
//hide some config value
|
||||
//just set HIDE + the name of the config item to true
|
||||
DECLARE_CAPABILITY(HIDEminXdrInterval,true);
|
||||
|
||||
DECLARE_STRING_CAPABILITY(HELP_URL,"https://www.wellenvogel.de");
|
||||
#endif
|
||||
@@ -41,7 +41,8 @@ class GwUserCapability{
|
||||
#define DECLARE_USERTASK(task) GwUserTaskDef __##task##__(task,#task);
|
||||
#define DECLARE_USERTASK_PARAM(task,...) GwUserTaskDef __##task##__(task,#task,__VA_ARGS__);
|
||||
#define DECLARE_INITFUNCTION(task) GwInitTask __Init##task##__(task,#task);
|
||||
#define DECLARE_CAPABILITY(name,value) GwUserCapability __CAP##name##__(#name,#value);
|
||||
#define DECLARE_CAPABILITY(name,value) GwUserCapability __CAP##name##__(#name,#value);
|
||||
#define DECLARE_STRING_CAPABILITY(name,value) GwUserCapability __CAP##name##__(#name,value);
|
||||
#include "GwApi.h"
|
||||
#include "GwUserTasks.h"
|
||||
class TaskApi : public GwApi
|
||||
|
||||
Reference in New Issue
Block a user