* @author David Gay
*/
-module At45dbP {
+module At45dbP @safe() {
provides {
interface Init;
interface At45db;
at45pageoffset_t n,
uint16_t baseCrc) {
/* This is a hack (store crc in reqBuf), but it saves 2 bytes of RAM */
- reqBuf = TCAST(uint8_t * COUNT(baseCrc), baseCrc);
- newRequest(R_READCRC, page, offset, reqBuf, n);
+ newRequest(R_READCRC, page, offset, TCAST(uint8_t * COUNT(n), baseCrc), n);
}
command void At45db.write(at45page_t page, at45pageoffset_t offset,