mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
cleanup warnings
This commit is contained in:
parent
289d6879ca
commit
265805ac94
1 changed files with 5 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ fn wrapped_main() -> ! {
|
||||||
let mut frames = 0;
|
let mut frames = 0;
|
||||||
let mut frame = [0u8; IMAGE_WIDTH * IMAGE_HEIGHT];
|
let mut frame = [0u8; IMAGE_WIDTH * IMAGE_HEIGHT];
|
||||||
let mut decode_success;
|
let mut decode_success;
|
||||||
// while iox.get_gpio_pin_value(IoxPort::PB, 9) == IoxValue::High {}
|
while iox.get_gpio_pin_value(IoxPort::PB, 9) == IoxValue::High {}
|
||||||
loop {
|
loop {
|
||||||
#[cfg(not(feature = "decongest-udma"))]
|
#[cfg(not(feature = "decongest-udma"))]
|
||||||
cam.capture_async();
|
cam.capture_async();
|
||||||
|
|
@ -325,11 +325,11 @@ fn wrapped_main() -> ! {
|
||||||
// clear the front buffer
|
// clear the front buffer
|
||||||
sh1107.clear();
|
sh1107.clear();
|
||||||
|
|
||||||
let mut start = tt.elapsed_ms();
|
|
||||||
let mut now = tt.elapsed_ms();
|
|
||||||
const TIMEOUT_MS: u64 = 100;
|
const TIMEOUT_MS: u64 = 100;
|
||||||
#[cfg(feature = "decongest-udma")]
|
#[cfg(feature = "decongest-udma")]
|
||||||
{
|
{
|
||||||
|
let start = tt.elapsed_ms();
|
||||||
|
let mut now = tt.elapsed_ms();
|
||||||
// don't parallelize the camera capture to avoid triggering a hardware bug
|
// don't parallelize the camera capture to avoid triggering a hardware bug
|
||||||
// in the SPIM block.
|
// in the SPIM block.
|
||||||
while iox.get_gpio_pin_value(IoxPort::PB, 9) == IoxValue::High && ((now - start) < TIMEOUT_MS) {
|
while iox.get_gpio_pin_value(IoxPort::PB, 9) == IoxValue::High && ((now - start) < TIMEOUT_MS) {
|
||||||
|
|
@ -342,8 +342,8 @@ fn wrapped_main() -> ! {
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for the transfer to finish
|
// wait for the transfer to finish
|
||||||
start = tt.elapsed_ms();
|
let start = tt.elapsed_ms();
|
||||||
now = tt.elapsed_ms();
|
let mut now = tt.elapsed_ms();
|
||||||
while cam.udma_busy(cramium_hal::udma::Bank::Rx) && ((now - start) < TIMEOUT_MS) {
|
while cam.udma_busy(cramium_hal::udma::Bank::Rx) && ((now - start) < TIMEOUT_MS) {
|
||||||
now = tt.elapsed_ms();
|
now = tt.elapsed_ms();
|
||||||
// busy-wait to get better time resolution on when the frame ends
|
// busy-wait to get better time resolution on when the frame ends
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue