Skip to content

Commit efde40b

Browse files
calebbourgjhodapp
authored andcommitted
update imports based on discussion with team
1 parent e507237 commit efde40b

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

esp32-wroom-rp/src/protocol.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@
88
99
pub(crate) mod operation;
1010

11-
use embedded_hal::blocking::delay::DelayMs;
11+
use core::cell::RefCell;
1212

1313
use defmt::{write, Format, Formatter};
1414

15+
use embedded_hal::blocking::delay::DelayMs;
16+
1517
use heapless::{String, Vec};
1618

1719
use super::network::{ConnectionState, IpAddress, Port, Socket, TransportMode};
18-
1920
use super::wifi::ConnectionStatus;
20-
2121
use super::{Error, FirmwareVersion, ARRAY_LENGTH_PLACEHOLDER};
2222

23-
use core::cell::RefCell;
24-
2523
pub(crate) const MAX_NINA_PARAM_LENGTH: usize = 4096;
2624

2725
#[repr(u8)]

esp32-wroom-rp/src/spi.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ use embedded_hal::blocking::delay::DelayMs;
55
use embedded_hal::blocking::spi::Transfer;
66

77
use super::gpio::EspControlInterface;
8-
98
use super::network::{ConnectionState, IpAddress, NetworkError, Port, Socket, TransportMode};
10-
119
use super::protocol::operation::Operation;
12-
1310
use super::protocol::{
1411
NinaByteParam, NinaCommand, NinaConcreteParam, NinaLargeArrayParam, NinaParam,
1512
NinaProtocolHandler, NinaSmallArrayParam, NinaWordParam, ProtocolError, ProtocolInterface,
1613
};
17-
1814
use super::wifi::ConnectionStatus;
19-
2015
use super::{Error, FirmwareVersion, ARRAY_LENGTH_PLACEHOLDER};
2116

2217
// TODO: this should eventually move into NinaCommandHandler

esp32-wroom-rp/src/tcp_client.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ use embedded_hal::blocking::spi::Transfer;
1212
use heapless::String;
1313

1414
use super::gpio::EspControlInterface;
15-
1615
use super::network::{
1716
ConnectionState, Hostname, IpAddress, NetworkError, Port, Socket, TransportMode,
1817
};
19-
2018
use super::protocol::{NinaProtocolHandler, ProtocolInterface};
21-
2219
use super::wifi::Wifi;
23-
2420
use super::{Error, ARRAY_LENGTH_PLACEHOLDER};
2521

2622
const MAX_HOSTNAME_LENGTH: usize = 255;

esp32-wroom-rp/src/wifi.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ use core::cell::RefCell;
1010

1111
use defmt::{write, Format, Formatter};
1212

13-
use embedded_hal::blocking::delay::DelayMs;
14-
use embedded_hal::blocking::spi::Transfer;
13+
use embedded_hal::blocking::{delay::DelayMs, spi::Transfer};
1514

1615
use super::gpio::EspControlInterface;
17-
1816
use super::network::IpAddress;
19-
2017
use super::protocol::{NinaProtocolHandler, ProtocolInterface};
21-
2218
use super::{Error, FirmwareVersion};
2319

2420
/// An enumerated type that represents the current WiFi network connection status.

0 commit comments

Comments
 (0)