Check the current firmware version
This commit is contained in:
parent
9095ba6090
commit
7e287a6079
1 changed files with 15 additions and 1 deletions
|
@ -43,7 +43,21 @@ void TellStick::setAvailable(bool available) {
|
|||
}
|
||||
|
||||
bool TellStick::isUpgradable() const {
|
||||
return true; //TODO: check version
|
||||
QString fw = firmware();
|
||||
if (fw == "?") {
|
||||
return false;
|
||||
}
|
||||
int firmware = fw.toInt();
|
||||
if (type() == 1) {
|
||||
//TellStick
|
||||
if (firmware <= 3) {
|
||||
return false;
|
||||
}
|
||||
if (firmware < 6) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void TellStick::aquireTellStick() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue