From c4a9c67be6790d7bf18869ab4352ffde2ef9e15f Mon Sep 17 00:00:00 2001 From: Abhijith Chatra Date: Mon, 17 Apr 2017 10:49:40 -0700 Subject: [PATCH] Adding baud rate 31250 (#383) --- 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 cb5f38ea..edc5825d 100644 --- a/libs/core/_locales/core-strings.json +++ b/libs/core/_locales/core-strings.json @@ -28,6 +28,7 @@ "BaudRate.BaudRate28800|block": "28800", "BaudRate.BaudRate300|block": "300", "BaudRate.BaudRate38400|block": "38400", + "BaudRate.BaudRate31250|block": "31250", "BaudRate.BaudRate4800|block": "4800", "BaudRate.BaudRate57600|block": "57600", "BaudRate.BaudRate9600|block": "9600", diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index 8ede4a03..8699bcd0 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -447,6 +447,8 @@ declare namespace led { BaudRate57600 = 57600, //% block=38400 BaudRate38400 = 38400, + //% block=31250 + BaudRate31250 = 31250, //% block=28800 BaudRate28800 = 28800, //% block=19200 diff --git a/libs/core/serial.cpp b/libs/core/serial.cpp index 3b53a253..4d9a7894 100644 --- a/libs/core/serial.cpp +++ b/libs/core/serial.cpp @@ -19,6 +19,8 @@ enum BaudRate { BaudRate57600 = 57600, //% block=38400 BaudRate38400 = 38400, + //% block=31250 + BaudRate31250 = 31250, //% block=28800 BaudRate28800 = 28800, //% block=19200