Renamed to avoid compiler warning

pull/4/head
Paul Hollinsky 2018-09-18 16:36:04 -04:00
parent 6d4652f03f
commit 5b1a56ee6c
1 changed files with 1 additions and 2 deletions

View File

@ -85,9 +85,8 @@ bool Packetizer::input(const std::vector<uint8_t>& inputBytes) {
// Got a good packet
gotGoodPackets = true;
processedPackets.push_back(std::make_shared<Communication::Packet>(packet));
for (auto i = 0; i < packetLength; i++)
for (auto a = 0; a < packetLength; a++)
bytes.pop_front();
} else {
if(gotGoodPackets) // Don't complain unless we've already gotten a good packet, in case we started in the middle of a stream
std::cout << "Dropping packet due to bad checksum" << std::endl;