2
0
forked from Ivasoft/DSView

update: Update the default value of address format of I2C protocol

This commit is contained in:
dreamsourcelabTAI
2022-05-20 11:15:03 +08:00
parent 3c29408007
commit 253c35bee4
3 changed files with 4 additions and 4 deletions

View File

@@ -44,8 +44,6 @@ Interval::Interval(SigSession *session, QWidget *parent) :
_interval_spinBox->setButtonSymbols(QAbstractSpinBox::NoButtons);
_interval_slider = new QSlider(Qt::Horizontal, this);
_interval_slider->setRange(1, 10);
connect(_interval_slider, SIGNAL(valueChanged(int)), _interval_spinBox, SLOT(setValue(int)));
connect(_interval_spinBox, SIGNAL(valueChanged(int)), _interval_slider, SLOT(setValue(int)));
_interval_slider->setValue(_session->get_repeat_intvl());
@@ -59,6 +57,8 @@ Interval::Interval(SigSession *session, QWidget *parent) :
setTitle(tr("Repetitive Interval"));
connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));
connect(_interval_slider, SIGNAL(valueChanged(int)), _interval_spinBox, SLOT(setValue(int)));
connect(_interval_spinBox, SIGNAL(valueChanged(int)), _interval_slider, SLOT(setValue(int)));
}
void Interval::accept()

View File

@@ -77,7 +77,7 @@ class Decoder(srd.Decoder):
)
options = (
{'id': 'address_format', 'desc': 'Displayed slave address format',
'default': 'shifted', 'values': ('shifted', 'unshifted')},
'default': 'unshifted', 'values': ('shifted', 'unshifted')},
)
annotations = (
('7', 'start', 'Start condition'),

View File

@@ -78,7 +78,7 @@ class Decoder(srd.Decoder):
)
options = (
{'id': 'address_format', 'desc': 'Displayed slave address format',
'default': 'shifted', 'values': ('shifted', 'unshifted')},
'default': 'unshifted', 'values': ('shifted', 'unshifted')},
)
annotations = (
('7', 'start', 'Start condition'),