Fix some compiler warnings
This commit is contained in:
parent
4d1fdd777f
commit
9d5af14609
6 changed files with 13 additions and 7 deletions
|
@ -60,7 +60,7 @@ void Message::addSpecialArgument(const std::wstring &value){
|
|||
this->append(L":");
|
||||
this->append(value);
|
||||
|
||||
/*
|
||||
|
||||
std::wstringstream st;
|
||||
st << (int)value.size();
|
||||
this->append(st.str());
|
||||
|
@ -74,7 +74,6 @@ void Message::addSpecialArgument(int value){
|
|||
int i = 0;
|
||||
while(i<1000000){
|
||||
i++;
|
||||
/*
|
||||
//std::wstringstream st;
|
||||
//st << (int)value;
|
||||
this->append(L"i");
|
||||
|
|
|
@ -17,7 +17,8 @@ std::string ProtocolFineoffset::decodeData(const ControllerMessage &dataMsg) {
|
|||
return "";
|
||||
}
|
||||
|
||||
uint8_t checksum = (uint8_t)TelldusCore::hexTo64l(data.substr(data.length()-2));
|
||||
// Checksum currently not used
|
||||
// uint8_t checksum = (uint8_t)TelldusCore::hexTo64l(data.substr(data.length()-2));
|
||||
data = data.substr(0, data.length()-2);
|
||||
|
||||
uint8_t humidity = (uint8_t)TelldusCore::hexTo64l(data.substr(data.length()-2));
|
||||
|
|
|
@ -15,7 +15,8 @@ std::string ProtocolMandolyn::decodeData(const ControllerMessage &dataMsg) {
|
|||
std::string data = dataMsg.getParameter("data");
|
||||
uint32_t value = (uint32_t)TelldusCore::hexTo64l(data);
|
||||
|
||||
bool parity = value & 0x1;
|
||||
// parity not used
|
||||
// bool parity = value & 0x1;
|
||||
value >>= 1;
|
||||
|
||||
double temp = static_cast<double>(value & 0x7FFF) - static_cast<double>(6400);
|
||||
|
@ -25,7 +26,8 @@ std::string ProtocolMandolyn::decodeData(const ControllerMessage &dataMsg) {
|
|||
uint8_t humidity = (value & 0x7F);
|
||||
value >>= 7;
|
||||
|
||||
bool battOk = value & 0x1;
|
||||
// battOk not used
|
||||
// bool battOk = value & 0x1;
|
||||
value >>= 3;
|
||||
|
||||
uint8_t channel = (value & 0x3)+1;
|
||||
|
|
|
@ -72,7 +72,8 @@ std::string ProtocolOregon::decodeEA4C(const std::string &data) {
|
|||
|
||||
std::string ProtocolOregon::decode1A2D(const std::string &data) {
|
||||
uint64_t value = TelldusCore::hexTo64l(data);
|
||||
uint8_t checksum2 = value & 0xFF;
|
||||
// checksum2 not used yet
|
||||
// uint8_t checksum2 = value & 0xFF;
|
||||
value >>= 8;
|
||||
uint8_t checksum1 = value & 0xFF;
|
||||
value >>= 8;
|
||||
|
@ -100,7 +101,8 @@ std::string ProtocolOregon::decode1A2D(const std::string &data) {
|
|||
value >>= 8;
|
||||
|
||||
checksum += ((value >> 4) & 0xF) + (value & 0xF);
|
||||
uint8_t channel = (value >> 4) & 0x7;
|
||||
// channel not used
|
||||
// uint8_t channel = (value >> 4) & 0x7;
|
||||
|
||||
checksum += 0x1 + 0xA + 0x2 + 0xD - 0xA;
|
||||
|
||||
|
|
|
@ -115,6 +115,7 @@ std::string Settings::getNodeString(Settings::Node type) const {
|
|||
} else if (type == Controller) {
|
||||
return "controller";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
#ifndef _CONFUSE
|
||||
|
|
|
@ -267,6 +267,7 @@ int list_kv_devices() {
|
|||
printf("\n");
|
||||
index++;
|
||||
}
|
||||
return TELLSTICK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue