fix(spiffs): Corrected buffer size and allocation in host test

This commit is contained in:
radek.tandler 2023-06-22 15:52:06 +02:00
parent 4c13bf53ea
commit 1da6a4f5fa

View File

@ -195,7 +195,8 @@ TEST(spiffs, format_disk_open_file_write_and_read_file)
// Generate data
spiffs_file file = spiffs_res;
uint32_t data_size = 100000;
uint32_t data_count = 5000;
uint32_t data_size = data_count * sizeof(uint32_t);
char *data = (char *) malloc(data_size);
char *read = (char *) malloc(data_size);