From f95e90f227923aa5e654461b05e29fa48987c24c Mon Sep 17 00:00:00 2001 From: martinp876 Date: Sun, 20 Jul 2014 06:45:04 +0000 Subject: [PATCH] allow space in 4dis text command git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6280 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index 3754c05ad..ba5623741 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -3010,12 +3010,13 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++ else{ return "to many parameter. Try set $a[0] text $a[2] $a[3]" if($a[4]); } - my $s = 54; + $l1 =~ s/\\_/ /g; $l1 = substr($l1."\x00", 0, 13); $l1 =~ s/(.)/sprintf(" %02X:%02X",$s++,ord($1))/ge; $s = 70; + $l2 =~ s/\\_/ /g; $l2 = substr($l2."\x00", 0, 13); $l2 =~ s/(.)/sprintf(" %02X:%02X",$s++,ord($1))/ge; @@ -7595,7 +7596,8 @@ sub CUL_HM_tempListTmpl(@) { ################################################## Set the text on the display of the device. To this purpose issue this set command first (or a number of them), and then choose from the teach-in menu of the 4Dis the "Central" to transmit the data.
- If used on a channel btn_no and on|off must not be given but only pure text. + If used on a channel btn_no and on|off must not be given but only pure text.
+ \_ will be replaced by blank character.
Example: