Skip to content

Commit

Permalink
fixup ActiveDevice - circular dep
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Feb 6, 2024
1 parent 2906e30 commit 6304fba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/ActiveDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { v4 as uuidv4 } from "uuid";

import { AVR109Flasher } from "@api/flash/AVR109Flasher";
import { WebDFUFlasher } from "@api/flash/WebDFUFlasher";
import { t } from "i18next";

export function ActiveDevice() {
this.port = undefined;
Expand Down Expand Up @@ -74,7 +75,7 @@ export function ActiveDevice() {
};

this.supported_commands = () => {
if (this.focusDetected()) {
if (this.focus.isInApplicationMode()) {
return this.focus.supported_commands();
} else {
return [];
Expand Down

0 comments on commit 6304fba

Please sign in to comment.