projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeSignal: Remove outdated code and comment
[pulseview.git]
/
pv
/
data
/
decode
/
decoder.cpp
diff --git
a/pv/data/decode/decoder.cpp
b/pv/data/decode/decoder.cpp
index 511f7bffb67abcc4d65b9cfa1888a6cc55a5e2ba..1c941074a0a13ea1150d1f93391148247e01b88d 100644
(file)
--- a/
pv/data/decode/decoder.cpp
+++ b/
pv/data/decode/decoder.cpp
@@
-122,11
+122,14
@@
srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session) const
g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
for (DecodeChannel *ch : channels_) {
g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
for (DecodeChannel *ch : channels_) {
+ if (!ch->assigned_signal)
+ continue;
+
init_pin_states->data[ch->id] = ch->initial_pin_state;
init_pin_states->data[ch->id] = ch->initial_pin_state;
- GVariant *const gvar = g_variant_new_int32(ch->
id); //
id = bit position
+ GVariant *const gvar = g_variant_new_int32(ch->
bit_id); // bit_
id = bit position
g_variant_ref_sink(gvar);
g_variant_ref_sink(gvar);
- // key is channel name
, value is bit position in each sample
+ // key is channel name
(pdch->id), value is bit position in each sample (gvar)
g_hash_table_insert(channels, ch->pdch_->id, gvar);
}
g_hash_table_insert(channels, ch->pdch_->id, gvar);
}