fix pddb in doc-deps target

This commit is contained in:
bunnie 2025-05-06 03:15:51 +08:00
parent b663929bd1
commit ef97e33ae4
2 changed files with 5 additions and 3 deletions

View file

@ -115,6 +115,8 @@ board-baosor = [
] # Precursor form factor
# board-dabao is not a valid target as it lacks external SPI flash
doc-deps = []
# when selected, physical disk addresses are set to 64 bits, otherwise, they are 32 bits.
# 32 bit addressing is recommended for Precursor, as its disk is only 128MiB and it has limited RAM for bookkeeping.
u64_pa = []

View file

@ -750,14 +750,14 @@ impl Pddb {
};
// this is a two-phase query, because it's quite likely that the number of keys can be very large in a
// dict.
#[cfg(feature = "gen1")]
#[cfg(any(feature = "gen1"))]
let token = [
self.trng.get_u32().unwrap(),
self.trng.get_u32().unwrap(),
self.trng.get_u32().unwrap(),
self.trng.get_u32().unwrap(),
];
#[cfg(feature = "gen2")]
#[cfg(any(feature = "gen2", feature = "doc-deps"))]
let token = xous::create_server_id().unwrap().to_array();
let request = PddbDictRequest {
basis_specified: basis_name.is_some(),
@ -873,7 +873,7 @@ impl Pddb {
self.trng.get_u32().unwrap(),
self.trng.get_u32().unwrap(),
];
#[cfg(feature = "gen2")]
#[cfg(any(feature = "gen2", feature = "doc-deps"))]
let token = xous::create_server_id().unwrap().to_array();
let request = PddbDictRequest {
basis_specified: basis_name.is_some(),