minor improvement detecting changed value

git-svn-id: https://svn.code.sf.net/p/fhem/code/trunk@3395 2b470e98-0d58-463d-a4d8-8e2adae1ed80
minor fix in FRM_IN counter