From 2f2987a4d5d449688653272ac979bebcc2bdf7b1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 7 Sep 2018 12:28:38 +0200 Subject: [PATCH] Regression: fixed wrong BUILTIN_AS_LAST comparator This bug has been introduced with b3d01d82810b5ac895623bdaebb647bf82bee1e4 Fix #7973 --- .../cc/arduino/contributions/packages/ContributedPlatform.java | 2 +- build/shared/revisions.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java index 24222a2b4fc..3149aea1e2f 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java @@ -87,7 +87,7 @@ public void setBuiltIn(boolean builtIn) { public static final Comparator BUILTIN_AS_LAST = (x, y) -> { int px = x.isBuiltIn() ? 1 : -1; int py = y.isBuiltIn() ? 1 : -1; - return py - px; + return px - py; }; private Map resolvedToolReferences; diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index d2134fcf622..ad80435957f 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -7,6 +7,7 @@ ARDUINO 1.8.7 2018.09.11 * Fixed: IDE doesn't start if a library with invalid version is found. * Fixed: Better dialog explaining that MacOSX 10.8 is now required. Thanks @PaulStoffregen * Fixed: Slow "File" and "Tools" menus in MacOSX +* Fixed: Weird Board Manager behaviour if AVR core is downgraded to a version earlier than 1.6.22 * Improved first-use usability if the user don't select the serial port. Thanks @PaulStoffregen * Custom "Tools" menu now keeps the order as defined in boards.txt.