mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 09:15:38 +03:00
[Companion][TelemetrySensorPanel] Fix signed/unsigned compare warning.
This commit is contained in:
parent
1b00fd2a9d
commit
62608cdc7d
1 changed files with 1 additions and 1 deletions
|
@ -698,7 +698,7 @@ void TelemetrySensorPanel::update()
|
|||
ui->ratio->setMinimum(0);
|
||||
ui->ratio->setSingleStep(0.1);
|
||||
}
|
||||
if (ui->offset->decimals() != sensor.prec) {
|
||||
if (ui->offset->decimals() != (int)sensor.prec) {
|
||||
ui->offset->setDecimals(sensor.prec);
|
||||
ui->offset->setMaximum(30000.0f / powf(10.0f, sensor.prec));
|
||||
ui->offset->setMinimum(-ui->offset->maximum());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue