diff --git a/examples/List/UtilsAndHelper/UtilsAndHelper.ino b/examples/List/UtilsAndHelper/UtilsAndHelper.ino index 4fbd379..734476d 100644 --- a/examples/List/UtilsAndHelper/UtilsAndHelper.ino +++ b/examples/List/UtilsAndHelper/UtilsAndHelper.ino @@ -35,18 +35,18 @@ void setup() { Serial.println("Inserted another element"); // Convert list to array - int *array = list.toArray(); - // Print every element from the new array - Serial.print("The list contains the following values which are get by converting the list to an array: ["); - for (int i = 0; i < list.getSize(); ++i) { - Serial.print(array[i]); - if (i != list.getSize() - 1) { // only add the ',' if the element is not the last; otherwise the output would be: [2,2,]; but now it is [2,2] - Serial.print(","); - } - } - Serial.println("]"); - // free memory space generated by toArray(), because it is not used anymore - free(array); + //int *array = list.toArray(); + //// Print every element from the new array + //Serial.print("The list contains the following values which are get by converting the list to an array: ["); + //for (int i = 0; i < list.getSize(); ++i) { + // Serial.print(array[i]); + // if (i != list.getSize() - 1) { // only add the ',' if the element is not the last; otherwise the output would be: [2,2,]; but now it is [2,2] + // Serial.print(","); + // } + //} + //Serial.println("]"); + //// free memory space generated by toArray(), because it is not used anymore + //free(array); Serial.println();