mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-24 08:43:55 +08:00
get them out
This commit is contained in:
@@ -57,7 +57,7 @@ void MadsSettings::updateToggles(bool _offroad) {
|
||||
capnp::FlatArrayMessageReader cmsg(aligned_buf.align(cp_bytes.data(), cp_bytes.size()));
|
||||
cereal::CarParams::Reader CP = cmsg.getRoot<cereal::CarParams>();
|
||||
|
||||
if (isBrandInList(CP.getBrand(), mads_limited_settings_brands)) {
|
||||
if (isBrandInList(CP.getBrand(), mads_limited_settings_brands)) { // trigger UI preview, remove
|
||||
params.remove("MadsMainCruiseAllowed");
|
||||
params.putBool("MadsUnifiedEngagementMode", true);
|
||||
params.put("MadsSteeringMode", std::to_string(static_cast<int>(MadsSteeringMode::DISENGAGE)));
|
||||
|
||||
Reference in New Issue
Block a user