From 6fb08f0f7bd574f21f62c906ae992489c04e6209 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Fri, 15 Dec 2017 07:48:42 -0800 Subject: [PATCH] Fix order of color and ultrasonic sensor ports. --- libs/color-sensor/color.ts | 6 +++--- libs/ultrasonic-sensor/ultrasonic.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index e5351839..3821e83f 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -182,12 +182,12 @@ namespace sensors { //% whenUsed block="1" weight=95 fixedInstance jres=icons.port1 export const color1: ColorSensor = new ColorSensor(1) - //% whenUsed block="3" weight=90 fixedInstance jres=icons.port3 - export const color3: ColorSensor = new ColorSensor(3) - //% whenUsed block="2" weight=90 fixedInstance jres=icons.port2 export const color2: ColorSensor = new ColorSensor(2) + //% whenUsed block="3" weight=90 fixedInstance jres=icons.port3 + export const color3: ColorSensor = new ColorSensor(3) + //% whenUsed block="4" weight=90 fixedInstance jres=icons.port4 export const color4: ColorSensor = new ColorSensor(4) } diff --git a/libs/ultrasonic-sensor/ultrasonic.ts b/libs/ultrasonic-sensor/ultrasonic.ts index 869a49e8..e7cda4b6 100644 --- a/libs/ultrasonic-sensor/ultrasonic.ts +++ b/libs/ultrasonic-sensor/ultrasonic.ts @@ -92,13 +92,13 @@ namespace sensors { //% fixedInstance whenUsed block="1" jres=icons.port1 export const ultrasonic1: UltraSonicSensor = new UltraSonicSensor(1) - - //% fixedInstance whenUsed block="4" jres=icons.port4 - export const ultrasonic4: UltraSonicSensor = new UltraSonicSensor(4) //% fixedInstance whenUsed block="2" jres=icons.port2 export const ultrasonic2: UltraSonicSensor = new UltraSonicSensor(2) //% fixedInstance whenUsed block="3" jres=icons.port3 export const ultrasonic3: UltraSonicSensor = new UltraSonicSensor(3) + + //% fixedInstance whenUsed block="4" jres=icons.port4 + export const ultrasonic4: UltraSonicSensor = new UltraSonicSensor(4) }