auto switch ds mode

This commit is contained in:
awalol
2026-05-07 23:00:19 +08:00
parent 8bb0c816df
commit 6ded3361f9
4 changed files with 23 additions and 4 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ struct __attribute__((packed)) Config_body {
uint8_t disable_pico_led; // bool
uint8_t polling_rate_mode; // 0: 250Hz, 1: 500Hz, 2: real-time
uint8_t haptics_buffer_length; // [16,128]
uint8_t controller_mode; // 0: DS5, 1: DSE 自动切换识别太麻烦了,懒的做了,期待pr
uint8_t controller_mode; // 0: DS5, 1: DSE, 2: Auto
};
struct __attribute__((packed)) Config {
@@ -33,5 +33,6 @@ const Config_body& get_config();
void set_config(const uint8_t *new_config, const uint16_t len);
void config_valid();
void set_config(const Config_body &new_config);
static bool is_dse = false;
#endif //DS5_BRIDGE_CONFIG_H