new ntrip client
This commit is contained in:
@@ -37,20 +37,21 @@ class MenuTestMode : public MenuDriveMode {
|
||||
Menu* mainMenu;
|
||||
|
||||
bool isInit = false;
|
||||
|
||||
uint8_t length = 3;
|
||||
int16_t values[3];
|
||||
char names[3][MAX_NAME_LENGTH];
|
||||
};
|
||||
|
||||
typedef bool (TestMode::*TestModeFunctionSingle)(int16_t);
|
||||
typedef bool (TestMode::*TestModeFunctionDouble)(int16_t, int16_t);
|
||||
class MenuTestModeWrapper : public MenuIntInputWrapper {
|
||||
public:
|
||||
MenuTestModeWrapper(TestMode* testMode);
|
||||
MenuTestModeWrapper(TestMode* testMode, TestModeFunctionSingle testModeFunction);
|
||||
MenuTestModeWrapper(TestMode* testMode, TestModeFunctionDouble testModeFunction);
|
||||
|
||||
void action(int16_t* values, uint8_t length) override;
|
||||
|
||||
private:
|
||||
TestMode* testMode;
|
||||
TestModeFunctionSingle testModeFunctionSingle = nullptr;
|
||||
TestModeFunctionDouble testModeFunctionDouble = nullptr;
|
||||
};
|
||||
|
||||
#endif // MENU_TEST_MODE
|
||||
|
||||
Reference in New Issue
Block a user