This commit is contained in:
Adam Ierymenko 2017-01-11 17:53:19 -08:00
parent 15ed7423ac
commit d58870a92d

View File

@ -370,7 +370,7 @@ void SoftwareUpdater::handleSoftwareUpdateUserMessage(uint64_t origin,const void
case VERB_GET_DATA: case VERB_GET_DATA:
if ((len >= 21)&&(_dist.size() > 0)) { if ((len >= 21)&&(_dist.size() > 0)) {
printf("<< DATA from %.10llx\n",origin); printf("<< GET_DATA from %.10llx for %s\n",origin,Utils::hex(reinterpret_cast<const uint8_t *>(data) + 1,16).c_str());
std::map< Array<uint8_t,16>,_D >::iterator d(_dist.find(Array<uint8_t,16>(reinterpret_cast<const uint8_t *>(data) + 1))); std::map< Array<uint8_t,16>,_D >::iterator d(_dist.find(Array<uint8_t,16>(reinterpret_cast<const uint8_t *>(data) + 1)));
if (d != _dist.end()) { if (d != _dist.end()) {
unsigned long idx = (unsigned long)*(reinterpret_cast<const uint8_t *>(data) + 17) << 24; unsigned long idx = (unsigned long)*(reinterpret_cast<const uint8_t *>(data) + 17) << 24;