From 46b34a0cd2598c49625f8806439d3b5afeac4c11 Mon Sep 17 00:00:00 2001 From: SFEMark Date: Fri, 15 Dec 2023 17:00:22 -0700 Subject: [PATCH 1/2] Create add_issue_to_project.yml Adding .yml file for issue tracking in GH project. --- .github/workflows/add_issue_to_project.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/add_issue_to_project.yml diff --git a/.github/workflows/add_issue_to_project.yml b/.github/workflows/add_issue_to_project.yml new file mode 100644 index 0000000..6b60cc3 --- /dev/null +++ b/.github/workflows/add_issue_to_project.yml @@ -0,0 +1,18 @@ +name: Add new issue to our main project + +on: + issues: + types: + - opened + +jobs: + add-to-project: + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@main + with: + # You can target a project in a different organization + # to the issue + project-url: https://github.com/orgs/sparkfun/projects/19 + github-token: ${{ secrets.DEFECT_ADD_TO_PROJECT }} From fa3eb7ac16bd51fa8d0014346cb9faca2f2519d2 Mon Sep 17 00:00:00 2001 From: Alex Brudner <101155592+SFE-Brudnerd@users.noreply.github.com> Date: Fri, 15 Dec 2023 17:26:48 -0700 Subject: [PATCH 2/2] Return from isConnected if not connected. --- src/SparkFun_AS7331.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SparkFun_AS7331.h b/src/SparkFun_AS7331.h index 580bbe7..76d3a22 100644 --- a/src/SparkFun_AS7331.h +++ b/src/SparkFun_AS7331.h @@ -47,7 +47,8 @@ class SfeAS7331ArdI2C : public SfeAS7331Driver setCommunicationBus(&_theI2CBus); - isConnected(); + if(!isConnected()) + return false; return SfeAS7331Driver::begin(address); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy