Revent:PMEM hack for compatibility with camera libs