Don't overwrite existing images
This commit is contained in:
parent
b808cebdea
commit
4bcd4ba82b
|
@ -1 +1 @@
|
||||||
549
|
551
|
||||||
|
|
|
@ -83,7 +83,7 @@ void BMP_Save(uint8_t *data, int width, int height)
|
||||||
char filename[13];
|
char filename[13];
|
||||||
BMP_ConstructFilename(file_number, filename, sizeof(filename));
|
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)
|
if(rc)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue