mirror of
https://github.com/kidoman/embd
synced 2025-07-02 19:41:23 +02:00
remove unnecessary parens
This commit is contained in:
parent
606555ca7f
commit
bb7032efe8
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ func convertWordToTempC(temp uint16) float64 {
|
|||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue