Project

General

Profile

Corrections for middle and long CAPMT

Added by Gilles BOUR over 6 years ago

There ane some error in files:
in file en50221.c, function en50221_app_pdu_send
line 785 -> else if (datalen < 0x100) {
buf7 = 0x82; should be buf7 = 0x81;
line 789 -> else if (datalen < 0x10000) {
buf7 = 0x83; should be buf7 = 0x82;
This is not enought ( it is ok for lens < 0x100.

For cases > 0x100, tow other files have to be modified :

in file en50221.h, at end line 221:
(en50221_slot_t *slot, const uint8_t *capmt, uint8_t capmtlen);
should be :
(en50221_slot_t *slot, const uint8_t *capmt, unsigned int capmtlen);

and in file en50221_appc.c, fuction en50221_send_capmt line 224:
(en50221_slot_t *slot, const uint8_t *capmt, uint8_t capmtlen)
should be :
(en50221_slot_t *slot, const uint8_t *capmt, unsigned int capmtlen)