Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.

Dependencies:   UniGraphic mbed vt100

Committer:
Rhyme
Date:
Fri Feb 23 07:51:55 2018 +0000
Revision:
1:8818b793d147
Parent:
0:ce97f6d34336
Wrong behavior when one of color sensor is missing has been fixed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:ce97f6d34336 1 #ifndef _PENDING_H_
Rhyme 0:ce97f6d34336 2 #define _PENDING_H_
Rhyme 0:ce97f6d34336 3 #include "mbed.h"
Rhyme 0:ce97f6d34336 4 #include "afLib.h"
Rhyme 0:ce97f6d34336 5 #include "af_attributes.h"
Rhyme 0:ce97f6d34336 6
Rhyme 0:ce97f6d34336 7 class pending_class {
Rhyme 0:ce97f6d34336 8 public:
Rhyme 0:ce97f6d34336 9 pending_class() ;
Rhyme 0:ce97f6d34336 10 pending_class(
Rhyme 0:ce97f6d34336 11 uint8_t messageType,
Rhyme 0:ce97f6d34336 12 uint16_t attrId,
Rhyme 0:ce97f6d34336 13 uint8_t requestId,
Rhyme 0:ce97f6d34336 14 uint16_t valueLen,
Rhyme 0:ce97f6d34336 15 uint8_t *value
Rhyme 0:ce97f6d34336 16 ) ;
Rhyme 0:ce97f6d34336 17 ~pending_class() ;
Rhyme 0:ce97f6d34336 18
Rhyme 0:ce97f6d34336 19 request_t *request ;
Rhyme 0:ce97f6d34336 20 uint32_t submit_time ;
Rhyme 0:ce97f6d34336 21 uint32_t replied_time ;
Rhyme 0:ce97f6d34336 22 } ;
Rhyme 0:ce97f6d34336 23 #endif /* _PENDING_H_ */