MTC: fix P5/B7

This commit is contained in:
Marc Riera Irigoyen 2023-06-01 17:33:37 +02:00
parent 1f84543091
commit f317be0f15
5 changed files with 6 additions and 5 deletions

View file

@ -94,12 +94,12 @@ pub fn set_model(state: &ControllerState) -> Option<ControllerModel> {
model = ControllerModel::SOTP031201P5B5;
descriptors = (&sotp031201_p5b5::DEVICE_DESCRIPTOR, &sotp031201_p5b5::DESCRIPTORS, &sotp031201_p5b5::STRINGS);
}
/* else if state.button_c && state.power == 3 {
else if state.button_c && state.power == 3 {
model_name = "SOTP-031201 (P5/B7 mode)";
model = ControllerModel::SOTP031201P5B7;
descriptors = (&sotp031201_p5b7::DEVICE_DESCRIPTOR, &sotp031201_p5b7::DESCRIPTORS, &sotp031201_p5b7::STRINGS);
}
else if state.button_a {
/* else if state.button_a {
model_name = "VOK-00106";
model = ControllerModel::VOK00106;
descriptors = (&vok00106::DEVICE_DESCRIPTOR, &vok00106::DESCRIPTORS, &vok00106::STRINGS);