]> the.earth.li Git - energenie-attiny.git/commit - usbconfig.h
Use serial number as base address + report in USB descriptor
authorJonathan McDowell <noodles@earth.li>
Tue, 29 May 2018 07:31:26 +0000 (08:31 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 29 May 2018 07:31:26 +0000 (08:31 +0100)
commit7a2d9ddd539a4d578f0da6c3428456946e4011b7
tree264dab292459f3382fe85b834c30536c61fc2aa5
parent2b2a47d9cc5e9ec8e2635283e3c44073719fcf93
Use serial number as base address + report in USB descriptor

Rather than hard coding the base Energenie address use the serial number
to encode it. Also report it as part of the USB descriptor making it
easier to match against for udev etc.
main.c
usbconfig.h