From d9b3f2fbef2a44f6212e73510e15375088a5dfd1 Mon Sep 17 00:00:00 2001 From: "Matthias L. Jugel" Date: Sat, 18 Feb 2017 15:32:21 +0100 Subject: [PATCH] add 57600 as baud selection --- libs/core/_locales/core-strings.json | 1 + libs/core/enums.d.ts | 2 ++ libs/core/serial.cpp | 2 ++ 3 files changed, 5 insertions(+) diff --git a/libs/core/_locales/core-strings.json b/libs/core/_locales/core-strings.json index e0ef32da..a43c6577 100644 --- a/libs/core/_locales/core-strings.json +++ b/libs/core/_locales/core-strings.json @@ -8,6 +8,7 @@ "AcceleratorRange.TwoG": "The accelerator measures forces up to 2 gravity", "AcceleratorRange.TwoG|block": "2g", "BaudRate.BaudRate115200|block": "115200", + "BaudRate.BaudRate56700|block": "57600", "BaudRate.BaudRate9600|block": "9600", "BeatFraction.Eighth|block": "1/8", "BeatFraction.Half|block": "1/2", diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index f305d9b3..3823e6b6 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -339,6 +339,8 @@ declare namespace motors { declare enum BaudRate { //% block=115200 BaudRate115200 = 115200, + //% block=57600 + BaudRate56700 = 57600, //% block=9600 BaudRate9600 = 9600, } diff --git a/libs/core/serial.cpp b/libs/core/serial.cpp index daeb813b..512f3912 100644 --- a/libs/core/serial.cpp +++ b/libs/core/serial.cpp @@ -12,6 +12,8 @@ enum SerialPin { enum BaudRate { //% block=115200 BaudRate115200 = 115200, + //% block=57600 + BaudRate56700 = 57600, //% block=9600 BaudRate9600 = 9600 };