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