Multos Forums

   

Small error in multosmisc.h from SmartDeck 2.3

RankRankRank

Total Posts: 74

Joined 2012-02-21

PM

Please note that line 27 of multosmisc.h is missing a comment marker.

// This macro allows the application to perform a card block operation. All of
// the parameters to the macro must be compile time constants. If the call is
// successful, *blocked is set. For more information please refer to the
MULTOS documentation.
#define CardBlock(offsetMAC_hi, offsetMAC_lo, okay) \
do {\
  __code
(PRIM0x05offsetMAC_hioffsetMAC_lo); \
  __code
(PRIM0x05);               \
  __code
(PRIM0x01, (1<<3), 1);     \
  __code
(STORE__typechk(unsigned char *, okay), 1); \
while (0

If you are using this include file, please add the missing // at the beginning of the line. This error will be corrected in the next release of SmartDeck.