From 509b23c17278a15c5a1b64fd301ef3ab77f31428 Mon Sep 17 00:00:00 2001 From: Fabio Mendes Date: Wed, 28 Aug 2024 15:53:24 -0400 Subject: [PATCH] Change default log level to info --- .cargo/config.toml | 2 +- .github/workflows/rust_ci.yml | 2 +- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 4 ++-- src/temperature.rs | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f78ab9a..4ac5037 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -5,4 +5,4 @@ runner = "probe-rs run --chip nRF52840_xxAA" target = "thumbv7em-none-eabihf" [env] -DEFMT_LOG = "info" +DEFMT_LOG = "debug" diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index 6dac8a6..07b8970 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -59,7 +59,7 @@ jobs: - name: Run build command env: - DEFMT_LOG: warn + DEFMT_LOG: info run: cargo build --release - name: Package diff --git a/Cargo.lock b/Cargo.lock index 2960191..bff8ac4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1110,7 +1110,7 @@ dependencies = [ [[package]] name = "tempsys-firmware" -version = "0.1.4" +version = "0.1.5" dependencies = [ "built", "cortex-m", diff --git a/Cargo.toml b/Cargo.toml index ea19061..4019b2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "tempsys-firmware" -version = "0.1.4" +version = "0.1.5" authors = ["Fabio Mendes "] resolver = "2" diff --git a/src/main.rs b/src/main.rs index d640a80..510f353 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,9 +132,9 @@ async fn main(spawner: Spawner) { loop { // ADC let voltage = voltage::read(&mut saadc).await; - defmt::info!("Voltage: {}", voltage); + defmt::debug!("Voltage: {}", voltage); - defmt::info!("Start advertising {}", counter); + defmt::debug!("Start advertising {}", counter); let adv_fut = advertise(sd, counter, voltage, temperature); pin_mut!(adv_fut); let temp_fut = temperature::read(); diff --git a/src/temperature.rs b/src/temperature.rs index 96ee305..dbb436e 100644 --- a/src/temperature.rs +++ b/src/temperature.rs @@ -37,7 +37,7 @@ pub async fn init(mut twi: Twim<'static, impl twim::Instance>) -> ! { } async fn setup_temp_reader(twi: &mut Twim<'_, impl twim::Instance>) -> Result<(), twim::Error> { - defmt::info!("Set resolution"); + defmt::debug!("Set resolution"); twi.write(MCP9808_ADDRESS, &[0x08, 0x00]).await?; Ok(()) } @@ -55,7 +55,7 @@ async fn read_temperature(twi: &mut Twim<'_, impl twim::Instance>) -> Result