Skip to content

Commit

Permalink
Router: fix avr firmware compilation again
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Dec 27, 2024
1 parent f9acb77 commit 1172331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/routers/mcu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export const compileFirmware = async <T extends boolean>(
}
const binaryName = board.firmwareBinaryName;
let extension = path.extname(binaryName);
if (extension === 'hex' && board.firmwareBinaryName.endsWith('.elf.hex')) {
extension = 'elf.hex';
if (extension === '.hex' && board.firmwareBinaryName.endsWith('.elf.hex')) {
extension = '.elf.hex';
}
const klipperOut = path.join(environment.KLIPPER_DIR, 'out', `klipper${extension}`);
const firmwareDest = path.join(environment.RATOS_DATA_DIR, binaryName);
Expand Down

0 comments on commit 1172331

Please sign in to comment.