stm32 : change returned value of mass_erase function