diff --git a/CHANGELOG.md b/CHANGELOG.md index 264a78a..94829f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.9.2] - 2024-04-09 + +### Changed + +- fix a problem with floats since last version + ## [0.9.1] - 2024-04-05 ### Added diff --git a/README.md b/README.md index 3a2086c..78821b2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MBusinoLib - an Arduino M-Bus Decoder Library -[![version](https://img.shields.io/badge/version-0.9.1-brightgreen.svg)](CHANGELOG.md) +[![version](https://img.shields.io/badge/version-0.9.2-brightgreen.svg)](CHANGELOG.md) [![license](https://img.shields.io/badge/license-GPL--3.0-orange.svg)](LICENSE) diff --git a/library.json b/library.json index 0b02271..587f689 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "type": "git", "url": "https://github.com/Zeppelin500/MBusinoLib.git" }, - "version": "0.9.1", + "version": "0.9.2", "license": "GPL-3.0", "frameworks": "arduino", "platforms": ["atmelavr", "atmelsam", "espressif8266"], diff --git a/library.properties b/library.properties index 85d3938..7aeae9f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=MBusinoLib -version=0.9.1 +version=0.9.2 author=Zeppelin500 maintainer=Zeppelin500 sentence=an Arduino M-Bus decode Library diff --git a/src/MBusinoLib.cpp b/src/MBusinoLib.cpp index 1bcd092..543c981 100644 --- a/src/MBusinoLib.cpp +++ b/src/MBusinoLib.cpp @@ -453,7 +453,7 @@ uint8_t MBusinoLib::decode(uint8_t *buffer, uint8_t size, JsonArray& root) { if(dataCodingType == 3){ scaled = valueFloat; } - if(vifarray[0]==0xFF){ + else if(vifarray[0]==0xFF){ scaled = value; } else{