- // fill sectors data\r
- for(i = 0; i < 16; i++) {\r
- emlSetMem((uint8_t *)empty, i * 4 + 0, 1);\r
- emlSetMem((uint8_t *)empty, i * 4 + 1, 1);\r
- emlSetMem((uint8_t *)empty, i * 4 + 2, 1);\r
- emlSetMem((uint8_t *)trailer, i * 4 + 3, 1);\r
- }\r
+ uint8_t* emCARD = eml_get_bigbufptr_cardmem();\r
+ \r
+ memset(emCARD, 0, CARD_MEMORY_LEN);\r
+ \r
+ // fill sectors trailer data\r
+ for(b = 3; b < 256; b<127?(b+=4):(b+=16)) {\r
+ emlSetMem((uint8_t *)trailer, b , 1);\r
+ } \r