/* Temporary storage for frames not yet fully sent */
struct BAP_Frame *slot[4];
- /* How many bytes have we already sent on each channel? */
+ /* How many bytes have we already sent on each open slot? */
BAP_FrameLen slot_done[4];
};
unsigned short header;
unsigned this_len;
+ /* Sanity checks */
if (frame->can_dlc < 4) {
- VAG_DEBUG("Error: Frame too short\n");
+ VAG_DEBUG("bap_handle_can_frame: Frame too short\n");
}
if (bap->mfchannel[mfchannel]) {
}
bap->mfchannel[mfchannel] = NULL;
+ /* Frame looks okay, start parsing */
bap_frame = vag_bap_frame_alloc();
if (!bap_frame) {
VAG_DEBUG("bap_handle_can_frame: Failed to allocate new frame\n");