mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-09 02:42:02 +00:00
fix: Embed default config to resolve build failure
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
6eda9149ca
commit
32b307b935
1 changed files with 4 additions and 2 deletions
|
|
@ -20,8 +20,10 @@ use std::{
|
||||||
};
|
};
|
||||||
use tokio::task::{self, LocalSet};
|
use tokio::task::{self, LocalSet};
|
||||||
|
|
||||||
/// Embed the default config.json at compile time.
|
/// Default config content, embedded in the binary.
|
||||||
const DEFAULT_CONFIG: &str = include_str!("../config.json");
|
const DEFAULT_CONFIG: &str = r#"{
|
||||||
|
"hardware_offset_ms": 20
|
||||||
|
}"#;
|
||||||
|
|
||||||
/// If no `config.json` exists alongside the binary, write out the default.
|
/// If no `config.json` exists alongside the binary, write out the default.
|
||||||
fn ensure_config() {
|
fn ensure_config() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue