Chaning the order in input advanced category (#1424)

This commit is contained in:
Abhijith Chatra 2018-10-15 08:55:38 -07:00 committed by Peli de Halleux
parent 8f04ed4191
commit 670a19a9b4
2 changed files with 5 additions and 3 deletions

View File

@ -350,7 +350,7 @@ namespace input {
/** /**
* Gets the number of milliseconds elapsed since power on. * 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)" //% blockId=device_get_running_time block="running time (ms)"
//% advanced=true //% advanced=true
int runningTime() { int runningTime() {
@ -372,6 +372,7 @@ namespace input {
*/ */
//% help=input/calibrate-compass advanced=true //% help=input/calibrate-compass advanced=true
//% blockId="input_compass_calibrate" block="calibrate compass" //% blockId="input_compass_calibrate" block="calibrate compass"
//% weight=45
void calibrateCompass() { void calibrateCompass() {
uBit.compass.calibrate(); uBit.compass.calibrate();
} }

View File

@ -324,7 +324,7 @@ declare namespace input {
/** /**
* Gets the number of milliseconds elapsed since power on. * 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)" //% blockId=device_get_running_time block="running time (ms)"
//% advanced=true shim=input::runningTime //% advanced=true shim=input::runningTime
function runningTime(): int32; function runningTime(): int32;
@ -341,7 +341,8 @@ declare namespace input {
* Obsolete, compass calibration is automatic. * Obsolete, compass calibration is automatic.
*/ */
//% help=input/calibrate-compass advanced=true //% 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; function calibrateCompass(): void;
/** /**