mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
use template functions instead of statics for taskInterfaces
This commit is contained in:
@@ -50,7 +50,7 @@ void handleLeds(GwApi *api){
|
||||
{
|
||||
delay(50);
|
||||
GwLedMode newMode = currentMode;
|
||||
IButtonTask buttonState = apiGetIButtonTask(api, apiResult);
|
||||
IButtonTask buttonState = api->taskInterfaces()->get<IButtonTask>(apiResult);
|
||||
if (apiResult >= 0)
|
||||
{
|
||||
switch (buttonState.state)
|
||||
|
||||
Reference in New Issue
Block a user