]> git.basschouten.com Git - openhab-addons.git/commitdiff
[serial] Allow custom baudrate and add option 2400 (#13265)
authorlolodomo <lg.hc@free.fr>
Mon, 15 Aug 2022 15:31:47 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Aug 2022 15:31:47 +0000 (17:31 +0200)
Fix #13131

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.serial/src/main/resources/OH-INF/i18n/serial.properties
bundles/org.openhab.binding.serial/src/main/resources/OH-INF/thing/thing-types.xml

index ddaaebd32d1cb67741a12278fe3e46f7b68810e1..7c964a99df97f23d9375ce0c43f18dc043559469 100644 (file)
@@ -14,6 +14,7 @@ thing-type.serial.serialDevice.description = Represents a device
 
 thing-type.config.serial.serialBridge.baudRate.label = Baud Rate
 thing-type.config.serial.serialBridge.baudRate.description = Set the baud rate
+thing-type.config.serial.serialBridge.baudRate.option.2400 = 2400
 thing-type.config.serial.serialBridge.baudRate.option.4800 = 4800
 thing-type.config.serial.serialBridge.baudRate.option.9600 = 9600
 thing-type.config.serial.serialBridge.baudRate.option.19200 = 19200
index 09a67ec444a9b76ceb854434df91b70146ce9586..632d46fc4ebe59595a26eb66f565805577339f00 100644 (file)
                                <advanced>true</advanced>
                                <label>Baud Rate</label>
                                <description>Set the baud rate</description>
+                               <limitToOptions>false</limitToOptions>
                                <default>9600</default>
                                <options>
+                                       <option value="2400">2400</option>
                                        <option value="4800">4800</option>
                                        <option value="9600">9600</option>
                                        <option value="19200">19200</option>