diff --git a/client/loclass/fileutils.c b/client/loclass/fileutils.c index 6645d7d62..a45d9edd8 100644 --- a/client/loclass/fileutils.c +++ b/client/loclass/fileutils.c @@ -120,7 +120,7 @@ int saveFileEML(const char *preferredName, const char *suffix, uint8_t* data, si for (i = 0; i < datalen; i++) { fprintf(f, "%02X", data[i] ); - if ( (i+1) % 4 == 0) + if ( (i+1) % blocksize == 0) fprintf(f, "\n"); } // left overs