diff --git a/Makefile b/Makefile index b069eff..411013d 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 47a5f28..ca4d0f4 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) diff --git a/src/main.c b/src/main.c index 079485c..91fed29 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: