Don't overwrite existing images

This commit is contained in:
fruchti 2020-05-23 23:27:42 +02:00
parent b808cebdea
commit 4bcd4ba82b
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
549
551

View file

@ -83,7 +83,7 @@ void BMP_Save(uint8_t *data, int width, int height)
char filename[13];
BMP_ConstructFilename(file_number, filename, sizeof(filename));
rc = f_open(&fp, filename, FA_WRITE | FA_CREATE_ALWAYS);
rc = f_open(&fp, filename, FA_WRITE | FA_CREATE_NEW);
if(rc)
{
return;