int checkUpdateFlash(uint8_t *imageram); void readImageFromFlash(uint8_t *raw, int imageIdx);