Skip to content

Commit

Permalink
sd-mux: linux-gmbh: fix seach for device for new mux board revision
Browse files Browse the repository at this point in the history
new revisions of this sd mux have a different identifier - so we have to update the string used to search for it so it works with both old and new

Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Jul 31, 2024
1 parent eb155f4 commit 74b87f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/sd-mux/implementations/linux-gmbh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class LinuxAut implements SdMux {
}

await execAsync(`usbsdmux /dev/${this.sgDev} host`);
let sdCheck = await execAsync(`ls /dev/disk/by-id/usb-LinuxAut_sdmux_HS-SD_MMC_* | head -1`);
let sdCheck = await execAsync(`ls /dev/disk/by-id/usb-LinuxAut* | head -1`);
this.DEV_SD = sdCheck.stdout.trim();
console.log(`SD MUX is: ${this.DEV_SD}`);
}
Expand Down

0 comments on commit 74b87f1

Please sign in to comment.