cabana: default factor to 1 (#26521)

This commit is contained in:
Willem Melching 2022-11-16 18:12:31 +01:00 committed by GitHub
parent fe2368c9eb
commit e099e42147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ void DetailWidget::addSignal(int start_bit, int size, bool little_endian) {
}
}
}
Signal sig = {.is_little_endian = little_endian};
Signal sig = {.is_little_endian = little_endian, .factor = 1};
for (int i = 1; /**/; ++i) {
sig.name = "NEW_SIGNAL_" + std::to_string(i);
if (msg->sigs.count(sig.name.c_str()) == 0) break;