Fix whitespace (#31361)

pull/31364/head
James 1 year ago committed by GitHub
parent e6f42fa6b3
commit 75b72c2c4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/ui/qt/onroad.cc

@ -289,7 +289,7 @@ void AnnotatedCameraWidget::updateState(const UIState &s) {
const auto nav_instruction = sm["navInstruction"].getNavInstruction(); const auto nav_instruction = sm["navInstruction"].getNavInstruction();
// Handle older routes where vCruiseCluster is not set // Handle older routes where vCruiseCluster is not set
float v_cruise = cs.getVCruiseCluster() == 0.0 ? cs.getVCruise() : cs.getVCruiseCluster(); float v_cruise = cs.getVCruiseCluster() == 0.0 ? cs.getVCruise() : cs.getVCruiseCluster();
setSpeed = cs_alive ? v_cruise : SET_SPEED_NA; setSpeed = cs_alive ? v_cruise : SET_SPEED_NA;
is_cruise_set = setSpeed > 0 && (int)setSpeed != SET_SPEED_NA; is_cruise_set = setSpeed > 0 && (int)setSpeed != SET_SPEED_NA;
if (is_cruise_set && !s.scene.is_metric) { if (is_cruise_set && !s.scene.is_metric) {

Loading…
Cancel
Save