We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb83c5 commit 3fdff29Copy full SHA for 3fdff29
src/patch/peripheral.rs
@@ -1249,13 +1249,9 @@ fn collect_in_array(
1249
let dim_increment = if dim > 1 {
1250
offsets[1] - offsets[0]
1251
} else {
1252
- rmod.get_u32("dimIncrement")?.unwrap_or_else(|| {
1253
- registers[0]
1254
- .properties
1255
- .size
1256
- .map(|s| s / 8)
1257
- .unwrap_or_default()
1258
- })
+ rmod.get_u32("dimIncrement")?
+ .or_else(|| registers[0].properties.size.map(|s| s / 8))
+ .unwrap_or_default()
1259
};
1260
if !check_offsets(&offsets, dim_increment) {
1261
return Err(anyhow!(
0 commit comments