Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OUT ?= bin/dividat-driver
# Only channel is main now
CHANNEL := main

VERSION := $(shell git describe --always HEAD)
VERSION ?= $(shell git describe --always HEAD)

CHECKSUM_SIGNING_CERT ?= ./keys/checksumsign.private.pem

Expand Down
2 changes: 1 addition & 1 deletion test/flex/mock/VirtualSerialPort.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class VirtualSerialPort extends EventEmitter {
*/
write(data) {
if (!this.isOpen || !this.writeStream) {
cosnole.error(
console.error(
"Write failed: TTY is not open (isOpen:",
this.isOpen,
"writeStream:",
Expand Down
6 changes: 3 additions & 3 deletions tools/replay-flex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DEVICE_USB_INFO = {

// Define CLI using commander
program
.description("Replay Senso Flex serial data recordings to a running Driver via a mock device.\n\nNote: The Driver must be running with test mode enabled for mock device registration.")
.description("Replay Senso Flex serial data recordings to a running Driver via a mock device.\n\nNote: The Driver must be running and built with a 'debug' tag for mock device registration.")
.argument("[recording-file]", "path to the recording file", "rec/flex/zero.dat")
.option("-s, --speed <number>", "replay speed multiplier (>1 faster, <1 slower)", parseFloat, 1)
.option("--once", "play recording once and exit instead of looping")
Expand All @@ -63,7 +63,7 @@ if (!validDeviceTypes.includes(deviceType)) {
// Get USB info and optionally apply passthru prefix
const usbInfo = { ...DEVICE_USB_INFO[deviceType] };
if (options.passthru) {
usbInfo.product = `PASSTHRU-${deviceType}`;
usbInfo.product = `PASSTHRU-${usbInfo.product}`;
}

async function main() {
Expand Down Expand Up @@ -103,7 +103,7 @@ async function main() {
console.log(`Mock device registered with ID: ${virtualDevice.registeredId}`);
} catch (error) {
console.error(`Failed to register mock device with Driver: ${error.message}`);
console.error(`Make sure the Driver is running with test mode enabled.`);
console.error(`Make sure the Driver is running and built with a 'debug' tag.`);
virtualDevice.serialPort.close();
process.exit(1);
}
Expand Down