aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etisnoop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/etisnoop.cpp b/etisnoop.cpp
index 9730d5c..4688ca9 100644
--- a/etisnoop.cpp
+++ b/etisnoop.cpp
@@ -616,19 +616,19 @@ void decodeFIG(std::vector<struct FIG> &figs,
int long_flag = (f[i+2] >> 7);
if (long_flag) {
- int option = (f[i+2] >> 4) & 0x0F;
+ int option = (f[i+2] >> 4) & 0x07;
int protection_level = (f[i+2] >> 2) & 0x03;
int subchannel_size = ((f[i+2] & 0x03) << 6 ) |
f[i+3];
i += 4;
- if (option = 0x00) {
+ if (option == 0x00) {
sprintf(desc,
"Subch 0x%x, start_addr %d, long, EEP %d-A, subch size %d",
subch_id, start_addr, protection_level, subchannel_size);
}
- else if (option = 0x01) {
+ else if (option == 0x01) {
sprintf(desc,
"Subch 0x%x, start_addr %d, long, EEP %d-B, subch size %d",
subch_id, start_addr, protection_level, subchannel_size);