device: fix serialization and deserialization of DeviceFound
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Apr 2018 13:05:00 +0000 (22:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 25 Apr 2018 13:05:00 +0000 (22:05 +0900)
commit75d0aba49be010bb18b514171fcf2672b47cc855
tree90c5da27c112d3a626c90a50248d2cbc473b1ff4
parent22ce84de184fa8c51985b621f7d1bb99e44ea35f
device: fix serialization and deserialization of DeviceFound

DeviceFound is a bit flag. So, it is necessary to support the case
that multiple bits are set.

Follow-up for 918e6f1c0151429f5095355f4f3f74f16e79724a.
src/core/device.c
src/core/device.h