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
|
type: frame
|
||||||
key: m5groovei2c#grv#
|
key: m5groovei2c#grv#
|
||||||
label: "M5 I2C Groove Units"
|
label: "M5 I2C Groove Units"
|
||||||
|
target: resource
|
||||||
|
resource: i2cbus
|
||||||
children:
|
children:
|
||||||
- label: "M5 ENV3"
|
- label: "M5 ENV3"
|
||||||
type: checkbox
|
type: checkbox
|
||||||
|
@ -682,7 +684,7 @@ resources:
|
||||||
default: &esp32default
|
default: &esp32default
|
||||||
serial: 2
|
serial: 2
|
||||||
can: 1
|
can: 1
|
||||||
i2c: 1
|
i2cbus: 2
|
||||||
gpio: 1
|
gpio: 1
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
|
|
@ -686,7 +686,7 @@ class PipelineInfo{
|
||||||
let allowed=allowedResources[ak];
|
let allowed=allowedResources[ak];
|
||||||
if (allowed === undefined) allowed=1;
|
if (allowed === undefined) allowed=1;
|
||||||
if (resList.length > allowed){
|
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