cleanup
This commit is contained in:
@@ -651,7 +651,6 @@ impl PlantCtrlBoardInteraction for PlantCtrlBoard<'_> {
|
||||
let mut client =
|
||||
EspMqttClient::new_cb(&config.mqtt_url, &mqtt_client_config, move |event| {
|
||||
let payload = event.payload();
|
||||
println!("received mqtt event {:?}", payload);
|
||||
match payload {
|
||||
embedded_svc::mqtt::client::EventPayload::Received {
|
||||
id: _,
|
||||
@@ -968,9 +967,6 @@ impl CreatePlantHal<'_> for PlantHal {
|
||||
esp!(unsafe { esp_idf_sys::i2c_get_timeout(i2c_port, &mut timeout)}).unwrap();
|
||||
println!("init i2c timeout is {}", timeout);
|
||||
|
||||
loop {
|
||||
unsafe { vTaskDelay(1) }
|
||||
}
|
||||
//esp!(unsafe { esp_idf_sys::i2c_set_timeout(i2c_port, 22)}).unwrap();
|
||||
|
||||
let mut battery_driver: Bq34z100g1Driver<I2cDriver, Delay> = Bq34z100g1Driver {
|
||||
|
||||
Reference in New Issue
Block a user