1
0
mirror of https://github.com/kidoman/embd synced 2024-10-31 23:38:44 +01:00

remove unnecessary parens

This commit is contained in:
Adam Bright 2016-09-26 04:06:41 +00:00
parent 606555ca7f
commit bb7032efe8

View File

@ -322,7 +322,7 @@ func convertWordToTempC(temp uint16) float64 {
} }
func (d *MCP9808) setTemp(reg byte, newTemp float64) error { func (d *MCP9808) setTemp(reg byte, newTemp float64) error {
return d.Bus.WriteWordToReg(address, reg, uint16((newTemp)*16)&0x1fff) return d.Bus.WriteWordToReg(address, reg, uint16(newTemp*16)&0x1fff)
} }
// AmbientTemp reads the current sensor value along with the flags denoting what boundaries the // AmbientTemp reads the current sensor value along with the flags denoting what boundaries the