Skip to content

Conversation

@bertoldia
Copy link

Hi there,
This branch contains a few misc fixes:

  • retab and remove trailing whitespaces
  • refactor temper.c
  • use ISO 8601 date/time format
  • user errno instead of reading value and number of read attempts to indicate no successful reads.

I think the change-set is best viewed by looking at the commits instead of the diff since the retab touches everything.

Thanks.

This is the first step in separating the various things happening in the
main loop. Like the original, this method reads up to three times
looking for a non-zero value and returns immediately if one is read.

Unlike the original, this one uses errno to indicate no successful
reads.
...based on the scale and offset.
Also prints the time. Unlike the original, this method uses localtime
and ISO 8601 format. Also unlike the original, this one limits the
significant decimals to two; I doubt this sensor is accurate to 4 or 5
decimal places.
Now the gist of the main loop is easier to follow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant