36 unsigned serialNumberLength =
getByte(ptr, limit);
40 componentType == 2 ?
"COMPONENT.aircraftSn":
41 componentType == 3 ?
"COMPONENT.rcSn":
42 componentType == 4 ?
"COMPONENT.batterySn":
43 "COMPONENT.unknownSn",
44 ptr, serialNumberLength, limit);
u_int8_t getByte(u_int8_t const *&ptr, u_int8_t const *limit)
void parseRecord_COMPONENT(u_int8_t const *&ptr, u_int8_t const *limit)
u_int16_t get2BytesLE(u_int8_t const *&ptr, u_int8_t const *limit)
void noteStringField(char const *label, u_int8_t const *&ptr, unsigned stringLength, u_int8_t const *limit)