diff --git a/src/beep.rs b/src/beep.rs
index 82f7b59..7ab55b8 100644
--- a/src/beep.rs
+++ b/src/beep.rs
@@ -4,9 +4,9 @@ use esp_idf_hal::ledc::{config::TimerConfig, Channel, Timer};
use esp_idf_hal::ledc::{CHANNEL0, TIMER0};
use esp_idf_hal::prelude::*;
use esp_idf_svc::timer::{EspTimer, EspTimerService};
-use esp_idf_sys::EspError;
+use esp_idf_sys::{ledc_mode_t_LEDC_LOW_SPEED_MODE, ledc_set_freq, EspError};
use log::{info, warn};
-use std::sync::{Arc, Mutex};
+use std::sync::{Arc, Mutex, MutexGuard};
use std::time::Duration;
type LedcChannel
= Channel, P>;
@@ -28,16 +28,28 @@ impl BeepState {
}
}
+type BeepChannel = Channel, Gpio4