diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml index ae4c69ab..39e2a0ad 100644 --- a/.github/workflows/report-size-deltas.yml +++ b/.github/workflows/report-size-deltas.yml @@ -1,11 +1,21 @@ +name: Report Size Deltas + +# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows on: + push: + paths: + - ".github/workflows/report-size-deltas.yml" schedule: - - cron: '*/5 * * * *' + # Run at the minimum interval allowed by GitHub Actions. + # Note: GitHub Actions periodically has outages which result in workflow failures. + # In this event, the workflows will start passing again once the service recovers. + - cron: "*/5 * * * *" + workflow_dispatch: + repository_dispatch: jobs: report: runs-on: ubuntu-latest - steps: - name: Comment size deltas reports to PRs uses: arduino/report-size-deltas@v1 diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index fe2c473e..ca6d793a 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -564,7 +564,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected() /* Retransmit data in case there was a lost transaction due * to phy layer or MQTT connectivity loss. */ - if(_mqtt_data_request_retransmit && (_mqtt_data_len > 0)) { + if (_mqtt_data_request_retransmit && (_mqtt_data_len > 0)) { write(_dataTopicOut, _mqtt_data_buf, _mqtt_data_len); _mqtt_data_request_retransmit = false; }