check number of uses i2c buses for cibuild and m5 grove
This commit is contained in:
parent
38acd5a30b
commit
ec0a84b934
|
@ -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:
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue