Upgrade dependencies

This commit is contained in:
2020-09-07 18:41:44 +02:00
parent 738c2f5a82
commit de6f39bddc
329 changed files with 50010 additions and 109914 deletions

View File

@@ -1,3 +0,0 @@
// Code generated by "stringer -type Duplex"; DO NOT EDIT
package conn

View File

@@ -1923,12 +1923,10 @@ func dtoi(d decimal, scale int) (int64, bool) {
switch {
case d.exp+scale < 0:
u = (u + powerOf10[mag]/2) / powerOf10[mag]
break
case mag == 0:
if u > maxInt64 {
return 0, true
}
break
default:
check := u * powerOf10[mag]
if check/powerOf10[mag] != u || check > maxInt64 {
@@ -2020,7 +2018,6 @@ func atod(s string) (decimal, int, error) {
return decimal{}, 0, &parseError{errNotANumber}
}
end = i
break
}
}

View File

@@ -43,7 +43,7 @@ func All() map[string][][]pin.Pin {
func Position(p pin.Pin) (string, int) {
mu.Lock()
defer mu.Unlock()
pos, _ := byPin[realPin(p).Name()]
pos := byPin[realPin(p).Name()]
return pos.name, pos.number
}