Skip to content

Commit

Permalink
Merge pull request #39 from OpenIPC/bug/telemetry-tab-fix
Browse files Browse the repository at this point in the history
fix bug #38, Telemetry tab not saving
  • Loading branch information
mikecarr authored Dec 8, 2024
2 parents 751e40a + d09bffa commit 67f1edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenIPC_Config/ViewModels/TelemetryTabViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ string newRcChannel
// Logic to update WfbConfContent with the new values
var lines = TelemetryContent.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
var regex = new Regex(
@"(frequency|channels|driver_txpower_override|frequency24|txpower|mcsindex|stbc|ldpc|feck|fecN|router)=.*");
@"(serial|baud|router|mcs_index|aggregate|channels)=.*");
var updatedContent = regex.Replace(TelemetryContent, match =>
{
switch (match.Groups[1].Value)
Expand All @@ -376,7 +376,7 @@ string newRcChannel
case Telemetry.Router:
return $"router={newRouter}";
case Telemetry.McsIndex:
return $"mcsindex={newMcsIndex}";
return $"mcs_index={newMcsIndex}";
case Telemetry.Aggregate:
return $"aggregate={newAggregate}";
case Telemetry.RcChannel:
Expand Down

0 comments on commit 67f1edb

Please sign in to comment.