• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

blues / note-c / 22673132835
93%

Build:
DEFAULT BRANCH: master
Ran 04 Mar 2026 02:19PM UTC
Jobs 1
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Mar 2026 02:12PM UTC coverage: 93.349% (-0.02%) from 93.364%
22673132835

push

github

web-flow
CRC fixes (#227)

* fix: correct memcmp size argument in _crcError CRC field detection

The third argument to memcmp was ((sizeof(CRC_FIELD_NAME_TEST) - 1)) != 0)
which evaluates != 0 as part of the size expression, yielding boolean 1
instead of the intended length 7. This caused CRC field detection to
compare only 1 byte (a quote character) instead of the full pattern.

This is triggered on Notecard firmware that does not support CRC. A
hub.status response like {"connected":false,"status":"connecting"}
has a quote at the CRC detection offset (position 19 = 41 - 22). The
1-byte compare falsely matches it as a CRC field, permanently setting
notecardFirmwareSupportsCrc=true and causing all subsequent responses
to be flagged as CRC errors.

When the Notecard does support CRC, the real CRC field sits at the
expected offset, so the 1-byte compare accidentally matches correctly.

Add regression tests with a realistic hub.status response that triggers
the bug to verify the fix.

* fix: Missing CRC bug

* fix: early return condition order

* fix: improve invalid JSON test

* fix: typos in comments

---------

Co-authored-by: Matthew McGowan <mat.mcgowan+git@gmail.com>

1195 of 1371 branches covered (87.16%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 1 file covered. (100.0%)

2454 of 2538 relevant lines covered (96.69%)

79.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22673132835.1 04 Mar 2026 02:19PM UTC 9
93.35
GitHub Action Run
Source Files on build 22673132835
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7fc5c592 on github
  • Prev Build on master (#22673089293)
  • Next Build on master (#22698986002)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc