From 670a19a9b4d91f905b3be520312d0fcc077720ae Mon Sep 17 00:00:00 2001 From: Abhijith Chatra Date: Mon, 15 Oct 2018 08:55:38 -0700 Subject: [PATCH] Chaning the order in input advanced category (#1424) --- libs/core/input.cpp | 3 ++- libs/core/shims.d.ts | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/core/input.cpp b/libs/core/input.cpp index 7b7dc524..5a971ac4 100644 --- a/libs/core/input.cpp +++ b/libs/core/input.cpp @@ -350,7 +350,7 @@ namespace input { /** * Gets the number of milliseconds elapsed since power on. */ - //% help=input/running-time weight=50 blockGap=16 + //% help=input/running-time weight=50 blockGap=8 //% blockId=device_get_running_time block="running time (ms)" //% advanced=true int runningTime() { @@ -372,6 +372,7 @@ namespace input { */ //% help=input/calibrate-compass advanced=true //% blockId="input_compass_calibrate" block="calibrate compass" + //% weight=45 void calibrateCompass() { uBit.compass.calibrate(); } diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index f94e2663..36288cf8 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -324,7 +324,7 @@ declare namespace input { /** * Gets the number of milliseconds elapsed since power on. */ - //% help=input/running-time weight=50 blockGap=16 + //% help=input/running-time weight=50 blockGap=8 //% blockId=device_get_running_time block="running time (ms)" //% advanced=true shim=input::runningTime function runningTime(): int32; @@ -341,7 +341,8 @@ declare namespace input { * Obsolete, compass calibration is automatic. */ //% help=input/calibrate-compass advanced=true - //% blockId="input_compass_calibrate" block="calibrate compass" shim=input::calibrateCompass + //% blockId="input_compass_calibrate" block="calibrate compass" + //% weight=45 shim=input::calibrateCompass function calibrateCompass(): void; /**