1
0
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:
andreas
2023-10-27 20:19:02 +02:00
parent 9e05a86820
commit 34dd3434fe
3 changed files with 23 additions and 15 deletions

View File

@@ -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)