According to http://vusb.wikidot.com/driver-api the initial
usbDeviceDisconnect() / usbDeviceConnect() for enumeration should
be called before doing the usbInit(). Haven't seen problems as a
result, but do so.
w1_setup();
set_serial();
w1_setup();
set_serial();
i = 0;
while (--i) {
wdt_reset();
_delay_ms(1);
}
i = 0;
while (--i) {
wdt_reset();
_delay_ms(1);
}
/* PB1 as output for LED */
DDRB |= 1 << PB1;
/* PB1 as output for LED */
DDRB |= 1 << PB1;