Skip to content

Commit 0f5a6ff

Browse files
authored
scratchpad is 9 bytes
scratchpad is 9 bytes not 12 (even for 12 bit resolution)
1 parent 4a1bc6c commit 0f5a6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/OneWire/examples/DS18x20_Temperature/DS18x20_Temperature.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void loop(void) {
2222
byte i;
2323
byte present = 0;
2424
byte type_s;
25-
byte data[12];
25+
byte data[9];
2626
byte addr[8];
2727
float celsius, fahrenheit;
2828

0 commit comments

Comments
 (0)