mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 19:23:56 +08:00
cabana: bug fixes (#29902)
* fix freq
* fix chart legend alignment issue
old-commit-hash: 0bd9df3193
This commit is contained in:
@@ -289,6 +289,7 @@ void ChartsWidget::splitChart(ChartView *src_chart) {
|
||||
}
|
||||
src_chart->updateAxisY();
|
||||
src_chart->updateTitle();
|
||||
QTimer::singleShot(0, src_chart, &ChartView::resetChartCache);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ struct CanData {
|
||||
std::vector<std::array<uint32_t, 8>> bit_change_counts;
|
||||
std::vector<int> last_delta;
|
||||
std::vector<int> same_delta_counter;
|
||||
double last_freq_update_ts = seconds_since_boot();
|
||||
double last_freq_update_ts = 0;
|
||||
};
|
||||
|
||||
struct CanEvent {
|
||||
|
||||
Reference in New Issue
Block a user