Skip to content

Commit

Permalink
Temp bug fix, no change of instance names in instances table
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Jun 1, 2024
1 parent 0547649 commit 8374737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ lib_deps =
build_flags =
-D APP=StarBase
-D PIOENV=$PIOENV
-D VERSION=24052715 ; Date and time (GMT!), update at every commit!!
-D VERSION=24060110 ; Date and time (GMT!), update at every commit!!
-D CONFIG_ASYNC_TCP_USE_WDT=0
-D LFS_THREADSAFE ; enables use of semaphores in LittleFS driver
-D STARBASE_DEVMODE
Expand Down
9 changes: 5 additions & 4 deletions src/Sys/SysModInstances.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ class SysModInstances:public SysModule {
case f_UIFun:
ui->setLabel(var, "Name");
return true;
case f_ChangeFun:
strcpy(instances[rowNr].name, mdl->getValue(var, rowNr));
sendMessageUDP(instances[rowNr].ip, "name", mdl->getValue(var, rowNr));
return true;
// comment this out for the time being as causes corrupted instance names
// case f_ChangeFun:
// strcpy(instances[rowNr].name, mdl->getValue(var, rowNr));
// sendMessageUDP(instances[rowNr].ip, "name", mdl->getValue(var, rowNr));
// return true;
default: return false;
}});

Expand Down

0 comments on commit 8374737

Please sign in to comment.