NMT: Fix channel encoding for interleaved

pull/1/head
Andreas Eversberg 4 years ago
parent e9a7f610ee
commit 9444fcdb91
  1. 4
      src/nmt/frame.c

@ -46,8 +46,8 @@ uint64_t nmt_encode_channel(int nmt_system, int channel, int power)
value |= power << 9;
} else {
/* interleaved channels are indicated in traffic area */
if (value >= 1024)
value -= 1024;
if (channel >= 1024)
channel -= 1024;
value |= channel;
/* if channel >= 512, set upper bit */
if (value & 0x200)

Loading…
Cancel
Save