summaryrefslogtreecommitdiff
path: root/pages/ibox.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/ibox.ecpp')
-rw-r--r--pages/ibox.ecpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/ibox.ecpp b/pages/ibox.ecpp
index 5d6ae48..7ca6069 100644
--- a/pages/ibox.ecpp
+++ b/pages/ibox.ecpp
@@ -47,12 +47,13 @@ using namespace std;
ReadLock channelsLock( Channels );
if (cDevice::CurrentChannel()) {
+ const int SKIP_GAP = 1;
cChannel* Channel = Channels.GetByNumber(cDevice::CurrentChannel());
- cChannel* tmp = Channels.GetByNumber(Channels.GetPrevNormal(cDevice::CurrentChannel()));
+ cChannel* tmp = Channels.GetByNumber(Channels.GetPrevNormal(cDevice::CurrentChannel()), -SKIP_GAP);
if (tmp)
prev_chan = tmp->GetChannelID();
- tmp = Channels.GetByNumber(Channels.GetNextNormal(cDevice::CurrentChannel()));
+ tmp = Channels.GetByNumber(Channels.GetNextNormal(cDevice::CurrentChannel()), SKIP_GAP);
if (tmp)
next_chan = tmp->GetChannelID();