remove test put measure

This commit is contained in:
Aurélien Gauthier 2025-12-10 09:12:10 +01:00
parent 974099afe7
commit ba186eed2f

View file

@ -179,39 +179,6 @@ void test_add_measure(){
}
}
// void test_put_measure(){
// Storage_interface test;
// uint16_t offset = 0, reading_head;
// uint8_t schedule = 0, nb_photo_sensor = 2, nb_temp_sensor = 1, sizeofuint8 = sizeof(uint8_t);
// // Useless folowing EEPROM.GET, here only for avoid wrong flags of unused variable of reading_head
// EEPROM.get(offset, reading_head);
// bool timestamp = true, is_final = true, photo_sensor = true, temp_sensor = true;
// test.set_struct(offset, timestamp, is_final, photo_sensor, temp_sensor, schedule, nb_photo_sensor, nb_temp_sensor, sizeofuint8, sizeofuint8);
// uint8_t photo_val_array[nb_photo_sensor], temp_val_array[nb_temp_sensor];
// for (int i = 0; i < nb_photo_sensor; i++){
// photo_val_array[i] = i;
// }
// for (int i = 0; i < nb_temp_sensor; i++){
// temp_val_array[i] = i;
// }
// test.put_measure(photo_val_array, temp_val_array, epoch, nb_photo_sensor, nb_temp_sensor);
// uint32_t horo;
// EEPROM.get(offset + OFFSET_START_DATA_MEASURES, horo);
// TEST_ASSERT(horo == epoch);
// for (int i = 0, reading_head = offset + OFFSET_START_DATA_MEASURES + sizeof(uint32_t); i < nb_photo_sensor; i++, reading_head += sizeofuint8){
// TEST_ASSERT(EEPROM.read(reading_head) == photo_val_array[i]);
// }
// for (int i = 0, reading_head = offset + OFFSET_START_DATA_MEASURES + sizeof(uint32_t) + sizeofuint8 * nb_photo_sensor; i < nb_temp_sensor; i++, reading_head += sizeofuint8){
// TEST_ASSERT(EEPROM.read(reading_head) == temp_val_array[i]);
// }
// }
// void test_get_measure(){
// Storage_interface test;