Attempt to support GA502DU, GL753VE. Bump version

This commit is contained in:
Luke
2020-04-23 14:51:20 +12:00
parent 7b3c2acd5e
commit 11548217b7
10 changed files with 292 additions and 47 deletions

View File

@@ -272,6 +272,7 @@ impl RogCore {
&mut self,
supported_modes: &[BuiltInModeByte],
) -> Result<(), AuraError> {
// TODO: different path for multi-zone (byte 2 controlled, non-zero)
let mode_curr = self.config.current_mode[3];
let idx = supported_modes.binary_search(&mode_curr.into()).unwrap();
let idx_next = if idx < supported_modes.len() - 1 {
@@ -295,6 +296,7 @@ impl RogCore {
&mut self,
supported_modes: &[BuiltInModeByte],
) -> Result<(), AuraError> {
// TODO: different path for multi-zone (byte 2 controlled, non-zero)
let mode_curr = self.config.current_mode[3];
let idx = supported_modes.binary_search(&mode_curr.into()).unwrap();
let idx_next = if idx > 0 {