From 32b307b9355c2a5581b47c867005aa63552b8aae Mon Sep 17 00:00:00 2001 From: John Rogers Date: Mon, 21 Jul 2025 16:58:56 +0100 Subject: [PATCH] fix: Embed default config to resolve build failure Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8909533..f3a2f31 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,8 +20,10 @@ use std::{ }; use tokio::task::{self, LocalSet}; -/// Embed the default config.json at compile time. -const DEFAULT_CONFIG: &str = include_str!("../config.json"); +/// Default config content, embedded in the binary. +const DEFAULT_CONFIG: &str = r#"{ + "hardware_offset_ms": 20 +}"#; /// If no `config.json` exists alongside the binary, write out the default. fn ensure_config() {