@@ -24,14 +24,14 @@ use esp_box_ui::{
24
24
25
25
// peripherals imports
26
26
use hal:: {
27
- clock:: { ClockControl , CpuClock , Clocks } ,
27
+ clock:: { ClockControl , CpuClock } ,
28
28
i2c:: I2C ,
29
29
spi:: {
30
30
master:: Spi ,
31
31
SpiMode
32
32
} ,
33
33
gpio:: { Event , GpioPin , Input , PullUp } ,
34
- peripherals:: { Peripherals , Interrupt , I2C0 , I2C1 } ,
34
+ peripherals:: { Peripherals , Interrupt , I2C0 } ,
35
35
prelude:: { _fugit_RateExtU32, * } ,
36
36
timer:: TimerGroup ,
37
37
Rng , IO , Delay ,
@@ -58,7 +58,7 @@ use rust_mqtt::{
58
58
} ;
59
59
60
60
// tls imports
61
- use esp_mbedtls:: { asynch:: { Session , AsyncConnectedSession } , set_debug, Mode , TlsVersion } ;
61
+ use esp_mbedtls:: { asynch:: Session , set_debug, Mode , TlsVersion } ;
62
62
use esp_mbedtls:: { Certificates , X509 } ;
63
63
64
64
use bme680:: * ;
@@ -247,7 +247,7 @@ async fn main(spawner: Spawner) {
247
247
248
248
let mut socket = TcpSocket :: new ( & stack, & mut rx_buffer, & mut tx_buffer) ;
249
249
250
- socket. set_timeout ( Some ( embassy_time:: Duration :: from_secs ( 31 ) ) ) ;
250
+ socket. set_timeout ( Some ( embassy_time:: Duration :: from_secs ( 60 ) ) ) ;
251
251
252
252
let address = match stack
253
253
. dns_query ( ENDPOINT , DnsQueryType :: A )
@@ -545,7 +545,7 @@ async fn main(spawner: Spawner) {
545
545
} ,
546
546
}
547
547
548
- sleep ( 30000 ) . await ;
548
+ sleep ( 59000 ) . await ;
549
549
}
550
550
}
551
551
}
@@ -647,7 +647,7 @@ async fn touch_controller_task(mut touch_controller: TT21100<I2C<'static, I2C0>,
647
647
}
648
648
}
649
649
} ,
650
- tt21100_async:: Event :: Touch { report, touches } => {
650
+ tt21100_async:: Event :: Touch { report : _ , touches } => {
651
651
if let Some ( touch) = touches. 0 {
652
652
653
653
let max_x = 320 ;
0 commit comments