check number of uses i2c buses for cibuild and m5 grove

This commit is contained in:
andreas 2024-11-26 20:43:32 +01:00
parent 38acd5a30b
commit ec0a84b934
2 changed files with 4 additions and 2 deletions

View File

@ -40,6 +40,8 @@ types:
type: frame
key: m5groovei2c#grv#
label: "M5 I2C Groove Units"
target: resource
resource: i2cbus
children:
- label: "M5 ENV3"
type: checkbox
@ -682,7 +684,7 @@ resources:
default: &esp32default
serial: 2
can: 1
i2c: 1
i2cbus: 2
gpio: 1
config:

View File

@ -686,7 +686,7 @@ class PipelineInfo{
let allowed=allowedResources[ak];
if (allowed === undefined) allowed=1;
if (resList.length > allowed){
errors+=" more than "+allowed+" "+k+" device(s) used";
errors+=" more than "+allowed+" device(s) of type "+k+" used";
}
}