Skip to content

Commit 1704bed

Browse files
committed
update imports based on discussion with team
1 parent 4594000 commit 1704bed

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
@@ -1,19 +1,17 @@
11
pub(crate) mod operation;
22

3-
use embedded_hal::blocking::delay::DelayMs;
3+
use core::cell::RefCell;
44

55
use defmt::{write, Format, Formatter};
66

7+
use embedded_hal::blocking::delay::DelayMs;
8+
79
use heapless::{String, Vec};
810

911
use super::network::{ConnectionState, IpAddress, Port, Socket, TransportMode};
10-
1112
use super::wifi::ConnectionStatus;
12-
1313
use super::{Error, FirmwareVersion, ARRAY_LENGTH_PLACEHOLDER};
1414

15-
use core::cell::RefCell;
16-
1715
pub(crate) const MAX_NINA_PARAM_LENGTH: usize = 4096;
1816

1917
#[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
@@ -4,15 +4,11 @@ use embedded_hal::blocking::spi::Transfer;
44
use heapless::String;
55

66
use super::gpio::EspControlInterface;
7-
87
use super::network::{
98
ConnectionState, Hostname, IpAddress, NetworkError, Port, Socket, TransportMode,
109
};
11-
1210
use super::protocol::{NinaProtocolHandler, ProtocolInterface};
13-
1411
use super::wifi::Wifi;
15-
1612
use super::{Error, ARRAY_LENGTH_PLACEHOLDER};
1713

1814
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
@@ -2,15 +2,11 @@ use core::cell::RefCell;
22

33
use defmt::{write, Format, Formatter};
44

5-
use embedded_hal::blocking::delay::DelayMs;
6-
use embedded_hal::blocking::spi::Transfer;
5+
use embedded_hal::blocking::{delay::DelayMs, spi::Transfer};
76

87
use super::gpio::EspControlInterface;
9-
108
use super::network::IpAddress;
11-
129
use super::protocol::{NinaProtocolHandler, ProtocolInterface};
13-
1410
use super::{Error, FirmwareVersion};
1511

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

0 commit comments

Comments
 (0)