kmark / Bee

The simple DigiMesh XBee library for Arduino
Other
11 stars 9 forks source link

Bee.cpp line 150 sizeof return #4

Closed BDK-FPE closed 8 years ago

BDK-FPE commented 8 years ago

On line 150 of Bee.cpp:

for(int i = 0; i < sizeof packet; i++) throws a compiler warning because sizeof returns a std::size_t which is of type unsigned integer.

Propose changing the declaration in the for loop to type uint16_t:

for(uint16_t i = 0; i < sizeof packet; i++)

kmark commented 8 years ago

This can be removed entirely since it's just there for a commented-out print/debug statement.