From 02a62fff5852959b883de8e838117f7f2433bb26 Mon Sep 17 00:00:00 2001 From: Orlando Hoilett Date: Sat, 22 Aug 2020 10:28:02 -0400 Subject: [PATCH 1/2] added a gitignore --- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..efed2b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Ignore Mac DS_Store files in all directories +.DS_Store + + +#Ignore EAGLE board and schematic auto save files (.b#x and .s#x) in all directories +*.b#? +*.s#? + + +#Development file for making local changes to Arduino libraries +#Ignore in all directories +.development \ No newline at end of file From 665f0e768cb2baf383b287451cee4ac96e3bc76b Mon Sep 17 00:00:00 2001 From: Orlando Hoilett Date: Sat, 22 Aug 2020 10:28:31 -0400 Subject: [PATCH 2/2] bug ffix: added type declaration in example sketches --- examples/QuickSortFloat/QuickSortFloat.ino | 14 ++++++++++++-- examples/QuickSortInt/QuickSortInt.ino | 14 ++++++++++++-- library.properties | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/examples/QuickSortFloat/QuickSortFloat.ino b/examples/QuickSortFloat/QuickSortFloat.ino index e5c0172..f65b100 100644 --- a/examples/QuickSortFloat/QuickSortFloat.ino +++ b/examples/QuickSortFloat/QuickSortFloat.ino @@ -5,6 +5,11 @@ Copyright (c) 2017 Luis Llamas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License + +UPDATES: +2020/08/22:1006> + error fix: Added type to templated declaration (Orlando S. Hoilett) + Also print values before ordering to compare (Orlando S. Hoilett) ****************************************************/ #include "QuickSortLib.h" @@ -25,9 +30,14 @@ void setup() { Serial.begin(115200); + Serial.println("Antes de ordenando"); + printArray(values100, values100Length); + Serial.println(); + Serial.println(); + Serial.println("Ordenando 100 integers"); unsigned long timeCount = micros(); - QuickSort::SortAscending(values100, 0, values100Length - 1); + QuickSort::SortAscending(values100, 0, values100Length - 1); timeCount = micros() - timeCount; printArray(values100, values100Length); Serial.println(); @@ -38,4 +48,4 @@ void setup() void loop() { -} \ No newline at end of file +} diff --git a/examples/QuickSortInt/QuickSortInt.ino b/examples/QuickSortInt/QuickSortInt.ino index 4b47c2e..e3c413a 100644 --- a/examples/QuickSortInt/QuickSortInt.ino +++ b/examples/QuickSortInt/QuickSortInt.ino @@ -5,6 +5,11 @@ Copyright (c) 2017 Luis Llamas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License + +UPDATES: +2020/08/22:1006> + error fix: Added type to templated declaration (Orlando S. Hoilett) + Also print values before ordering to compare (Orlando S. Hoilett) ****************************************************/ #include "QuickSortLib.h" @@ -25,9 +30,14 @@ void setup() { Serial.begin(115200); + Serial.println("Antes de ordenando"); + printArray(values100, values100Length); + Serial.println(); + Serial.println(); + Serial.println("Ordenando 100 integers"); unsigned long timeCount = micros(); - QuickSort::SortAscending(values100, 0, values100Length - 1); + QuickSort::SortAscending(values100, 0, values100Length - 1); timeCount = micros() - timeCount; printArray(values100, values100Length); Serial.println(); @@ -38,4 +48,4 @@ void setup() void loop() { -} \ No newline at end of file +} diff --git a/library.properties b/library.properties index c338e64..149268d 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=QuickSortLib -version=1.2.0 +version=1.2.1 author=Luis Llamas maintainer=Luis Llamas sentence=QuickSort Library