diff --git a/.arduino-ci.yml b/.arduino-ci.yml index cbdcfdc..efaca99 100644 --- a/.arduino-ci.yml +++ b/.arduino-ci.yml @@ -2,14 +2,15 @@ compile: # Choosing to run compilation tests on 2 different Arduino platforms platforms: - uno - - due + # - due # - zero # SAMD covered by M4 # - leonardo # AVR covered by UNO - - m4 + # - m4 # - esp32 # errors on OneWire => util/crc16.h vs rom/crc.h - - esp8266 + # - esp8266 # - mega2560 # AVR covered by UNO unittest: # These dependent libraries will be installed libraries: + - "Arduino" - "OneWire" diff --git a/.github/workflows/arduino-lint.yml b/.github/workflows/arduino-lint.yml index 6d4dfb7..7f8f4ef 100644 --- a/.github/workflows/arduino-lint.yml +++ b/.github/workflows/arduino-lint.yml @@ -1,13 +1,13 @@ - name: Arduino-lint on: [push, pull_request] jobs: lint: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: arduino/arduino-lint-action@v1 with: library-manager: update - # compliance: strict + compliance: strict \ No newline at end of file diff --git a/.github/workflows/arduino_test_runner.yml b/.github/workflows/arduino_test_runner.yml index fadfa90..dbd0ce7 100644 --- a/.github/workflows/arduino_test_runner.yml +++ b/.github/workflows/arduino_test_runner.yml @@ -1,4 +1,3 @@ ---- name: Arduino CI on: [push, pull_request] @@ -6,9 +5,10 @@ on: [push, pull_request] jobs: runTest: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 diff --git a/.github/workflows/jsoncheck.yml b/.github/workflows/jsoncheck.yml index 37a1129..1cbb5e2 100644 --- a/.github/workflows/jsoncheck.yml +++ b/.github/workflows/jsoncheck.yml @@ -9,10 +9,10 @@ on: jobs: test: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: json-syntax-check - uses: limitusus/json-syntax-check@v1 + uses: limitusus/json-syntax-check@v2 with: - pattern: "\\.json$" - + pattern: "\\.json$" \ No newline at end of file diff --git a/DallasTemperature.cpp b/DallasTemperature.cpp index 3d37289..99ac237 100644 --- a/DallasTemperature.cpp +++ b/DallasTemperature.cpp @@ -723,7 +723,7 @@ int32_t DallasTemperature::calculateTemperature(const uint8_t* deviceAddress, // the numeric value of DEVICE_DISCONNECTED_RAW is defined in // DallasTemperature.h. It is a large negative number outside the // operating range of the device -int32_t DallasTemperature::getTemp(const uint8_t* deviceAddress, byte retryCount = 0) { +int32_t DallasTemperature::getTemp(const uint8_t* deviceAddress, byte retryCount) { ScratchPad scratchPad; @@ -742,7 +742,7 @@ int32_t DallasTemperature::getTemp(const uint8_t* deviceAddress, byte retryCount // the numeric value of DEVICE_DISCONNECTED_C is defined in // DallasTemperature.h. It is a large negative number outside the // operating range of the device -float DallasTemperature::getTempC(const uint8_t* deviceAddress, byte retryCount = 0) { +float DallasTemperature::getTempC(const uint8_t* deviceAddress, byte retryCount) { return rawToCelsius(getTemp(deviceAddress, retryCount)); } diff --git a/README.md b/README.md index 24864ab..77b3bb3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ [![Arduino CI](https://github.com/milesburton/Arduino-Temperature-Control-Library/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) -[![Arduino-lint](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/AS5600/actions/workflows/arduino-lint.yml) -[![JSON check](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/AS5600/actions/workflows/jsoncheck.yml) +[![Arduino-lint](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/arduino-lint.yml) +[![JSON check](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/milesburton/Arduino-Temperature-Control-Library/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/milesburton/Arduino-Temperature-Control-Library.svg)](https://github.com/milesburton/Arduino-Temperature-Control-Library/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/milesburton/Arduino-Temperature-Control-Library/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/milesburton/Arduino-Temperature-Control-Library.svg?maxAge=3600)](https://github.com/milesburton/Arduino-Temperature-Control-Library/releases) - +[![Commits since latest](https://img.shields.io/github/commits-since/milesburton/Arduino-Temperature-Control-Library/latest)](https://github.com/milesburton/Arduino-Temperature-Control-Library/commits/master) # Arduino Library for Maxim Temperature Integrated Circuits diff --git a/library.json b/library.json index e88bd16..9e0614a 100644 --- a/library.json +++ b/library.json @@ -33,6 +33,8 @@ "paulstoffregen/OneWire": "^2.3.5" }, "version": "3.11.0", + "license": "GNU", "frameworks": "arduino", - "platforms": "*" + "platforms": "*", + "headers": "DallasTemperature.h" } diff --git a/test/unit_test_001.cpp.disabled b/test/unit_test_001.cpp similarity index 100% rename from test/unit_test_001.cpp.disabled rename to test/unit_test_001.cpp