Skip to content

Commit

Permalink
fix: make footprint u16 number of modules consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvollger committed Jul 30, 2024
1 parent bebf51d commit 489f343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommands/footprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pub struct FootprintYaml {

impl FootprintYaml {
pub fn check_for_valid_input(&self) -> Result<(), anyhow::Error> {
if self.modules.is_empty() || self.modules.len() > 8 {
if self.modules.is_empty() || self.modules.len() >= u16::MAX as usize {
return Err(anyhow::anyhow!(
"YAML SPECIFICATION ERROR: Number of modules must be between 1 and 8: {self:?}"
"YAML SPECIFICATION ERROR: Number of modules must be between 1 and 15: {self:?}"
));
}
let mut last_end = 0;
Expand Down

0 comments on commit 489f343

Please sign in to comment.