From ec0a84b934170ab7c50cf4f979fd49eff9373a9a Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 26 Nov 2024 20:43:32 +0100 Subject: [PATCH] check number of uses i2c buses for cibuild and m5 grove --- webinstall/build.yaml | 4 +++- webinstall/cibuild.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webinstall/build.yaml b/webinstall/build.yaml index 7af2679..f955239 100644 --- a/webinstall/build.yaml +++ b/webinstall/build.yaml @@ -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: diff --git a/webinstall/cibuild.js b/webinstall/cibuild.js index c20660e..26443b0 100644 --- a/webinstall/cibuild.js +++ b/webinstall/cibuild.js @@ -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"; } }