diff --git a/flash.c b/flash.c --- a/flash.c +++ b/flash.c @@ -16,12 +16,12 @@ static void __flash_write(therm_settings void flash_save(therm_settings_t* tosave) { ssd1306_clearscreen(); - ssd1306_DrawString("Erase...", 0, 0); + ssd1306_drawstring("Erase...", 0, 0); HAL_Delay(100); - ssd1306_DrawString("Save...", 1, 0); + ssd1306_drawstring("Save...", 1, 0); __flash_write(tosave); HAL_Delay(100); - ssd1306_DrawString("Done!", 2, 0); + ssd1306_drawstring("Done!", 2, 0); HAL_Delay(500); } @@ -29,11 +29,11 @@ void flash_save(therm_settings_t* tosave void flash_restore(therm_settings_t *torestore) { ssd1306_clearscreen(); - ssd1306_DrawString("READING SAVE", 1, 0); + ssd1306_drawstring("READING SAVE", 1, 0); if(eeprom[EEPROM_MAGIC_INDEX] != EEPROM_MAGIC_VALUE) { - ssd1306_DrawString("No data to read!", 2, 0); + ssd1306_drawstring("No data to read!", 2, 0); return; } @@ -42,7 +42,7 @@ void flash_restore(therm_settings_t *tor for(i=0;i<128;i++) torestore->data[i] = *(eeprom+i); - ssd1306_DrawString("READ COMPLETE", 3, 0); + ssd1306_drawstring("READ COMPLETE", 3, 0); }