Commit Graph

6 Commits (7682081ae0d9d641f511dcddcc2b510e7da5e144)

Author SHA1 Message Date
Marc-Antoine Ruel 7682081ae0 Many staticcheck fixes
It now passes when run as:
  staticcheck -checks all,-U1000,-ST1003,-SA5002,-SA1019 ./...

The disabled checks will be enabled later since they are less trivial to
enable, as this is already a non-trivial number of modifications.
6 years ago
M-A afa0c2bedd Officially drop support for pre-go1.7 (#365)
- Remove conditional tests on go 1.7.
- Stop running on travis with go 1.5.4.
- Bump go1.11 to go1.11.4.
7 years ago
Marc-Antoine Ruel 71c7a218dd Reduce the number of golint reports
This causes a few breaking changes in experimental code:

- hx711.TimeoutError was renamed to ErrTimeout
- unicornhd.NewUnicornhd() was stuttering and was renamed to New()
8 years ago
Nikola Kovacs 233d57b937 ina219: Fix currentLSB calculation (#319)
- currentLSB is supposed to be Maximum Expected Current / 2^15
  2 << 15 is 2^16, not 2^15.
- fix rounding error in powerLSB calculation
- check for overflow in calibration
- fix doc
8 years ago
Marc-Antoine Ruel fb97d9d25d testing.T.Run was introduced in Go 1.7, not Go 1.8
Make tests that were locked on 1.8 to run on Go 1.7.

Fix ina219 tests to only compile on Go 1.7 since it uses testing.t.Run().
8 years ago
NeuralSpaz f54b53f207 ina219: add i2c driver for high side current and voltage sensor (#292) 8 years ago