improving the spacing & block names (#298)

This commit is contained in:
Abhijith Chatra
2018-02-01 16:21:08 -08:00
committed by Peli de Halleux
parent f594cdefac
commit 9bf50665fc
6 changed files with 16 additions and 16 deletions

View File

@ -82,12 +82,12 @@ namespace sensors {
* Forces a calibration of the gyro. Must be called when the sensor is completely still.
*/
//% help=input/gyro/calibrate
//% block="%sensor|reset"
//% block="reset %sensor|"
//% blockId=gyroReset
//% parts="gyroscope"
//% blockNamespace=sensors
//% sensor.fieldEditor="ports"
//% weight=50 blockGap=8
//% weight=50
//% group="Gyro Sensor"
reset(): void {
if (this.calibrating) return; // already in calibration mode