From b549af9cddd15820dcc5698b8aa541d9b90b1ca7 Mon Sep 17 00:00:00 2001 From: 0x41kravchenko <0x41kravchenko@gmail.com> Date: Thu, 29 Jan 2026 12:16:50 +0100 Subject: [PATCH 1/2] Add macOS build instruction and support spaces in vesc_tool path --- Makefile | 4 ++-- README.md | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b069effd..411013d1 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ all: refloat.vescpkg refloat.vescpkg: src lisp/package.lisp package_README-gen.md ui.qml ifeq ($(OLDVT), 1) - $(VESC_TOOL) --buildPkg "refloat.vescpkg:lisp/package.lisp:ui.qml:0:package_README-gen.md:Refloat" + "$(VESC_TOOL)" --buildPkg "refloat.vescpkg:lisp/package.lisp:ui.qml:0:package_README-gen.md:Refloat" else - $(VESC_TOOL) --buildPkgFromDesc pkgdesc.qml + "$(VESC_TOOL)" --buildPkgFromDesc pkgdesc.qml endif src: diff --git a/README.md b/README.md index 47a5f28b..ca4d0f42 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ If you don't have `vesc_tool` in your `$PATH` (but you have, for example, a down ```sh make VESC_TOOL=/path/to/vesc_tool ``` +For macOS, the path to VESC Tool when installed using the official installer is as follows: +```sh +make VESC_TOOL="/Applications/VESC Tool.app/Contents/MacOS/VESC Tool" +``` ## Documentation [Development Documentation](doc/index.md) From 916b09d78805a63cf8a0ef69746bee9f2159169e Mon Sep 17 00:00:00 2001 From: 0x41kravchenko <0x41kravchenko@gmail.com> Date: Thu, 29 Jan 2026 12:19:23 +0100 Subject: [PATCH 2/2] Drive beeper pin low after init to prevent unintended beep Fix: Drive beeper pin low after init to prevent unintended beep --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index 079485cc..91fed29f 100644 --- a/src/main.c +++ b/src/main.c @@ -103,6 +103,7 @@ const VESC_PIN beeper_pin = VESC_PIN_PPM; void beeper_init() { VESC_IF->io_set_mode(beeper_pin, VESC_PIN_MODE_OUTPUT); + VESC_IF->io_write(beeper_pin, 0); } void beeper_update(Data *d) { @@ -1232,6 +1233,10 @@ static void data_init(Data *d) { ); d->odometer = VESC_IF->mc_get_odometer(); + + d->beep_num_left = 0; + d->beep_duration = 0; + d->beep_countdown = 0; } // See also: