From 34e6e50c61bbfee9e335c9c7c8dfc0a00d6dc330 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sun, 14 Jul 2024 17:42:39 +0200 Subject: [PATCH] Remove old broken `run` script --- run | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 run diff --git a/run b/run deleted file mode 100755 index 85d83f3..0000000 --- a/run +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env nu - -# Build, flash, and run the firmware. -# -# Will also attach to serial logs -def main [ - bin: string # Which firmware to run, 'left' or 'right'. - --serial (-s): string # The serial device to get logs from. - --probe (-p): bool # Flash & run using probe-run instead of elf2uf2 -] { - if $probe == true { - cargo build --bin $bin - probe-run --chip RP2040 --speed 4000 ("./target/thumbv6m-none-eabi/debug/" + $bin) - } else { - cargo run --bin $bin - } - - let log_script = ($env.FILE_PWD | path join "serial-logs") - - if $serial == null { - nu $log_script - } else { - nu $log_script --serial $serial - } -} -