Skip to content

Commit 7c19f0e

Browse files
committed
Cleanup
1 parent 0ea5daf commit 7c19f0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/Slave/DS18B20/DS18B20.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void setup()
5050
{
5151
// Random ROM identity code
5252
ROM[0] = FAMILY_CODE;
53-
for (size_t i = 1; i < OWI::ROM_MAX; i++) ROM[i] = rand();
53+
uint8_t* p = (uint8_t*) 0;
54+
for (size_t i = 1; i < OWI::ROM_MAX; i++) ROM[i] = *p++;
5455
}
5556

5657
// This sketch uses approx. 1900 bytes (Uno) of program storage space,

0 commit comments

Comments
 (0)