diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle/hyundai_settings.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle/hyundai_settings.cc index 74483ffc41..e342252cb8 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle/hyundai_settings.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle/hyundai_settings.cc @@ -56,7 +56,7 @@ void HyundaiSettings::updateSettings() { cereal::CarParamsSP::Reader CP_SP = cmsg.getRoot(); // TODO-SP: Better way to get the flag value in qt? - has_custom_button = CP_SP.getFlags() & 64; + has_custom_button = CP_SP.getFlags() & 512; // 512 = HAS_CUSTOM_BUTTON (2 ** 9) } else { has_custom_button = false; }