Skip to content

Commit

Permalink
MCP3004: correct number of channels
Browse files Browse the repository at this point in the history
the MCP3004 has 4 channels, not 3.

Fixes: b016010("spi: Add MCP3202, MCP3204, MCP3208, and MCP3304
drivers")

Signed-off-by: Tim Froidcoeur <[email protected]>
  • Loading branch information
tfroidcoeur authored and deadprogram committed Nov 14, 2021
1 parent 27c76b4 commit 40bf171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/mcp3004.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// MCP3004DriverMaxChannel is the number of channels of this A/D converter.
const MCP3004DriverMaxChannel = 3
const MCP3004DriverMaxChannel = 4

// MCP3004Driver is a driver for the MCP3008 A/D converter.
type MCP3004Driver struct {
Expand Down

0 comments on commit 40bf171

Please sign in to comment.