Skip to content

Commit ecbf925

Browse files
committed
Fix audio gain and filter ranges
1 parent 352e90f commit ecbf925

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NetRemote/Parser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ private string CmdAudioGain(bool set, object value)
216216
if (set)
217217
{
218218
int gain = (int)CheckValue<int>(value);
219-
CheckRange(gain, 0, 40);
219+
CheckRange(gain, 25, 60);
220220
_control.AudioGain = gain;
221221
result = Response<object>(null, null);
222222
}
@@ -383,7 +383,7 @@ private string CmdFilterType(bool set, object value)
383383
if (set)
384384
{
385385
int type = (int)CheckValue<int>(value);
386-
CheckRange(type, 0, Enum.GetNames(typeof(WindowType)).Length - 1);
386+
CheckRange(type, 1, Enum.GetNames(typeof(WindowType)).Length);
387387
_control.FilterType = (WindowType)type;
388388
result = Response<object>(null, null);
389389
}

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The value attribute only used with the Set command.
5959
### Method Attribute ###
6060
For the *Get* and *Set* commands the method can be one of the following:
6161

62-
AudioGain - Volume <0-40>
62+
AudioGain - Volume <25-60>
6363
AudioIsMuted - Mute <true|false>
6464

6565
CenterFrequency - Centre displayed frequency <0-999999999999>
@@ -76,7 +76,7 @@ For the *Get* and *Set* commands the method can be one of the following:
7676

7777
FmStereo - FM stereo <true|false>
7878

79-
FilterType - Filter type <0-6>
79+
FilterType - Filter type <1-6>
8080
FilterBandwidth - Filter bandwidth <0-250000>
8181
FilterOrder - Filter order <0-100>
8282

0 commit comments

Comments
 (0)