summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2b9a0a0)
Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/
async command uint8_t RadioPacket.maxPayloadLength()
{
async command uint8_t RadioPacket.maxPayloadLength()
{
- ASSERT( call Config.maxPayloadLength() <= 125 );
+ ASSERT( call Config.maxPayloadLength() - sizeof(rf230_header_t) <= 125 );
return call Config.maxPayloadLength() - sizeof(rf212_header_t);
}
return call Config.maxPayloadLength() - sizeof(rf212_header_t);
}
async command uint8_t RadioPacket.maxPayloadLength()
{
async command uint8_t RadioPacket.maxPayloadLength()
{
- ASSERT( call Config.maxPayloadLength() <= 125 );
+ ASSERT( call Config.maxPayloadLength() - sizeof(rf230_header_t) <= 125 );
return call Config.maxPayloadLength() - sizeof(rf230_header_t);
}
return call Config.maxPayloadLength() - sizeof(rf230_header_t);
}
async command uint8_t RadioPacket.maxPayloadLength()
{
async command uint8_t RadioPacket.maxPayloadLength()
{
- ASSERT( call Config.maxPayloadLength() <= 125 );
+ ASSERT( call Config.maxPayloadLength() - sizeof(rf230_header_t) <= 125 );
return call Config.maxPayloadLength() - sizeof(rf230_header_t);
}
return call Config.maxPayloadLength() - sizeof(rf230_header_t);
}