Skip to content

Commit

Permalink
fix(lua): save telemetry sensor generated by setTelemetryValue() (#5224)
Browse files Browse the repository at this point in the history
  • Loading branch information
mha1 authored Jun 28, 2024
1 parent 1a736b7 commit c377aa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radio/src/lua/api_general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,9 @@ static int luaSetTelemetryValue(lua_State * L)
telemetrySensor.subId = subId;
telemetrySensor.instance = instance;
telemetrySensor.init(name ? name: name_buf, unit, prec);

storageDirty(EE_MODEL);

lua_pushboolean(L, true);
} else {
lua_pushboolean(L, false);
Expand Down

0 comments on commit c377aa4

Please sign in to comment.