Skip to content

Commit

Permalink
Fix moves not appearing for non-ears
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Dec 21, 2024
1 parent 43ea965 commit ccceb2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Backend/action_registry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ class GetAvailableActions extends _$GetAvailableActions {
for (BaseStatefulDevice baseStatefulDevice in availableGear) {
// check if command matches device type
if (baseAction.deviceCategory.contains(baseStatefulDevice.baseDeviceDefinition.deviceType) && ((baseAction.actionCategory == ActionCategory.glowtip && baseStatefulDevice.hasGlowtip.value == GlowtipStatus.glowtip) || baseAction.actionCategory != ActionCategory.glowtip)) {
if (baseAction.deviceCategory.contains(DeviceType.ears)) {
// Handle migrating ears to unified firmware
// Handle migrating ears to unified firmware
if (baseAction.deviceCategory.contains(DeviceType.ears) && baseStatefulDevice.baseDeviceDefinition.deviceType == DeviceType.ears) {
if (baseStatefulDevice.isTailCoNTROL.value == tailControlStatus.tailControl) {
// skip legacy moves
if (baseAction is EarsMoveList) {
Expand Down

0 comments on commit ccceb2c

Please sign in to comment.