This commit is contained in:
concordia
2024-06-15 20:30:56 -05:00
parent be595765e4
commit 51561d3393
2 changed files with 2 additions and 1 deletions

View File

@@ -481,7 +481,7 @@ void AnnotatedCameraWidget::drawHud(QPainter &p) {
// }
// }
void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor colorSpeed, int width = 176) {
void AnnotatedCameraWidget::drawSpeedWidget(QPainter &p, int x, int y, const QString &title, const QString &speedLimitStr, QColor colorSpeed, int width) {
// Draw outer box + border to contain set speed and speed limit
const int sign_margin = 12;
const int us_sign_height = 186;

View File

@@ -387,6 +387,7 @@ def main() -> NoReturn:
else:
if time_since_last_report >= 30 and distance_change >= MIN_DISTANCE_CHANGE:
should_report = True
# Execute reporting if conditions are met
if should_report:
last_reported_time = current_time