diff --git a/telldus-core/service/ProtocolMandolyn.cpp b/telldus-core/service/ProtocolMandolyn.cpp index b8f5aae5..0a6ffcfb 100644 --- a/telldus-core/service/ProtocolMandolyn.cpp +++ b/telldus-core/service/ProtocolMandolyn.cpp @@ -12,7 +12,7 @@ std::string ProtocolMandolyn::decodeData(ControllerMessage &dataMsg) bool parity = value & 0x1; value >>= 1; - double temp = (value & 0x7FFF) - 6400; + double temp = (double)(value & 0x7FFF) - (double)6400; temp = temp/128.0; value >>= 15;