Reverting unintended changes

This commit is contained in:
Ryan Summers 2021-06-09 15:30:33 +02:00
parent 92c84a6bfe
commit 9bc351109c
3 changed files with 3 additions and 13 deletions

View File

@ -83,7 +83,7 @@ pounder_v1_1 = [ ]
[profile.dev]
codegen-units = 1
incremental = false
opt-level = 1
opt-level = 3
[profile.release]
opt-level = 3

View File

@ -95,12 +95,7 @@ const APP: () = {
stabilizer.net.mac_address,
);
let generator = {
use smoltcp_nal::embedded_nal::{IpAddr, Ipv4Addr, SocketAddr};
let remote =
SocketAddr::new(IpAddr::V4(Ipv4Addr::unspecified()), 0);
network.enable_streaming(remote.into())
};
let generator = network.enable_streaming(StreamTarget::default().into());
// Spawn a settings update for default settings.
c.spawn.settings_update().unwrap();
@ -220,7 +215,7 @@ const APP: () = {
c.spawn.settings_update().unwrap()
}
NetworkState::Updated => {}
NetworkState::NoChange => {}
NetworkState::NoChange => cortex_m::asm::wfi(),
}
}
}

View File

@ -258,11 +258,6 @@ pub fn setup(
let gpiof = device.GPIOF.split(ccdr.peripheral.GPIOF);
let mut gpiog = device.GPIOG.split(ccdr.peripheral.GPIOG);
let _uart_tx = gpiod
.pd8
.into_push_pull_output()
.set_speed(hal::gpio::Speed::VeryHigh);
let dma_streams =
hal::dma::dma::StreamsTuple::new(device.DMA1, ccdr.peripheral.DMA1);