Microchip MCP342x ADC library
Diff: mcp342x.cpp
- Revision:
- 3:03911aa07029
- Parent:
- 1:c4da9889ff85
- Child:
- 4:9480edf3926d
--- a/mcp342x.cpp Wed Jun 22 12:55:48 2016 +0000 +++ b/mcp342x.cpp Tue Jul 18 09:43:27 2017 +0000 @@ -144,7 +144,7 @@ // The digital output of the MCP342x is in two's complement format; // see datasheet Section 4.9. This 'if... else' construction // determines whether the digital code is negative or positive; if - // it is the former, it's two's complement is calculated. + // it is the former, its two's complement is calculated. if (adc_value > _max_code) { // if the output code is negative... volts = (~adc_value & _max_code) + 1;