🐛 Fix file name when carrying over last digit

This commit is contained in:
C-3PO 2018-09-16 04:43:06 +02:00
parent 3f5a52a070
commit 6bd7d47fc0
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -48,7 +48,7 @@ void openNextFile() {
//We need to transfer carry if necessary (e.g. .z09 to .z10), otherwise just increase last digit //We need to transfer carry if necessary (e.g. .z09 to .z10), otherwise just increase last digit
if (file.name[fileNameLength - 1] == '9') { if (file.name[fileNameLength - 1] == '9') {
file.name[fileNameLength - 2] += 1; file.name[fileNameLength - 2] += 1;
file.name[fileNameLength - 1] = 0; file.name[fileNameLength - 1] = '0';
} else { } else {
file.name[fileNameLength - 1] += 1; file.name[fileNameLength - 1] += 1;
} }