Added check on the pointers for device ID
Added the correct ID for the flash memory