Code refactoring 20

This commit is contained in:
dreamsourcelabTAI
2022-09-20 17:49:32 +08:00
parent 7376115bf5
commit cec8dade5e
18 changed files with 1185 additions and 1058 deletions
+4 -3
View File
@@ -42,9 +42,9 @@ const int LogicSignal::StateRound = 5;
LogicSignal::LogicSignal(data::Logic *data,
sr_channel *probe) :
Signal(probe),
_data(data),
_trig(NONTRIG)
_data(data)
{
_trig = NONTRIG;
}
LogicSignal::LogicSignal(view::LogicSignal *s,
@@ -96,7 +96,8 @@ bool LogicSignal::commit_trig()
if (_trig == NONTRIG) {
ds_trigger_probe_set(_index_list.front(), 'X', 'X');
return false;
} else {
}
else {
ds_trigger_set_en(true);
if (_trig == POSTRIG)
ds_trigger_probe_set(_index_list.front(), 'R', 'X');