Save internal RAM pattern to flash

def savePattern(self):
        """Save internal RAM pattern to flash 
        """
        if ( self.dev == None ): return ''
        buf = [REPORT_ID, ord('W'), 0xBE, 0xEF, 0xCA, 0xFE, 0, 0, 0]
        return self.write(buf);