mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
cleanup some debug output & fix ref link
This commit is contained in:
parent
602ef2d8a4
commit
e1c07cbf0b
4 changed files with 7 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ bao1x = [
|
||||||
"utralib/bao1x",
|
"utralib/bao1x",
|
||||||
"linked_list_allocator",
|
"linked_list_allocator",
|
||||||
"bao1x-hal/loader-baosec",
|
"bao1x-hal/loader-baosec",
|
||||||
"bao1x-hal/debug-print-duart",
|
# "bao1x-hal/debug-print-duart",
|
||||||
"bao1x-api",
|
"bao1x-api",
|
||||||
# needed for the boot logo
|
# needed for the boot logo
|
||||||
"ux-api/loader-baosec",
|
"ux-api/loader-baosec",
|
||||||
|
|
|
||||||
|
|
@ -186,11 +186,13 @@ impl Uf2Sector {
|
||||||
/// Takes in a slice of incoming data, and a notional "disk address" into which it should be writing
|
/// Takes in a slice of incoming data, and a notional "disk address" into which it should be writing
|
||||||
pub fn extend_from_slice(&mut self, address: usize, slice: &[u8]) -> (Option<Self>, Option<Uf2Block>) {
|
pub fn extend_from_slice(&mut self, address: usize, slice: &[u8]) -> (Option<Self>, Option<Uf2Block>) {
|
||||||
if address != self.address + self.progress {
|
if address != self.address + self.progress {
|
||||||
|
/*
|
||||||
crate::println!(
|
crate::println!(
|
||||||
"Resetting sector address tracker, expected {:x} got {:x}",
|
"Resetting sector address tracker, expected {:x} got {:x}",
|
||||||
self.address + self.progress,
|
self.address + self.progress,
|
||||||
address
|
address
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
self.address = address % 512;
|
self.address = address % 512;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -437,7 +437,9 @@ pub fn flush_tx(this: &mut CorigineUsb) {
|
||||||
{
|
{
|
||||||
timeout += 1;
|
timeout += 1;
|
||||||
if timeout % 20_000 == 0 {
|
if timeout % 20_000 == 0 {
|
||||||
crate::println!("txw {}", timeout);
|
// suppress this unless actively debugging because this can pollute the
|
||||||
|
// tx queue with data and eventually cause an overflow
|
||||||
|
// crate::println!("txw {}", timeout);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1010,7 +1010,7 @@ impl Repl {
|
||||||
crate::dabao_selftest::dabao_selftest();
|
crate::dabao_selftest::dabao_selftest();
|
||||||
}
|
}
|
||||||
"actest" => {
|
"actest" => {
|
||||||
let slot_man = bao1x_hal::protected_rram::SlotManager::new();
|
let slot_man = bao1x_hal::acram::SlotManager::new();
|
||||||
crate::println!(
|
crate::println!(
|
||||||
"Slot 0(d): {:x?}",
|
"Slot 0(d): {:x?}",
|
||||||
slot_man.read(&bao1x_api::offsets::SlotIndex::Data(
|
slot_man.read(&bao1x_api::offsets::SlotIndex::Data(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue