diff --git a/contrib/updatecheck/calcversions.sh b/contrib/updatecheck/calcversions.sh index 533a9483..42ffb2cb 100755 --- a/contrib/updatecheck/calcversions.sh +++ b/contrib/updatecheck/calcversions.sh @@ -3,9 +3,11 @@ version=`head -n 1 ../../VERSION` revision=`git describe --always` echo "ebusd=${version},${revision}" > versions.txt echo "ebusd=${version},${revision}" > oldversions.txt -devver=`curl -s https://adapter.ebusd.eu/firmware/ChangeLog|grep "Version "|head -n 1|sed -e 's#.*]*>##' -e 's#<.*##' -e 's# ##'` -devbl=`curl -s https://adapter.ebusd.eu/firmware/ChangeLog|grep "Bootloader "|head -n 1|sed -e 's#.*]*>##' -e 's#<.*##' -e 's# ##'` +devver=`curl -s https://adapter.ebusd.eu/v31/firmware/ChangeLog|grep "Version "|head -n 1|sed -e 's#.*]*>##' -e 's#<.*##' -e 's# ##'` +devbl=`curl -s https://adapter.ebusd.eu/v31/firmware/ChangeLog|grep "Bootloader version"|head -n 1|sed -e 's#.*]*>##' -e 's#<.*##' -e 's# ##'` echo "device=${devver},${devbl}" >> versions.txt +devver=`curl -s https://adapter.ebusd.eu/v5/ChangeLog|grep "Version "|head -n 1|sed -e 's#.*]*>##' -e 's#<.*##' -e 's# ##'` +echo "device=${devver},${devver}" >> versions.txt files=`find config/de -type f -or -type l` ../../src/lib/ebus/test/test_filereader $files|sed -e 's#^config/de/##' -e 's#^\([^ ]*\) #\1=#' -e 's# #,#g'|sort >> versions.txt files=`find config/en -type f -or -type l` diff --git a/contrib/updatecheck/index.php b/contrib/updatecheck/index.php index 230a0767..74a10897 100644 --- a/contrib/updatecheck/index.php +++ b/contrib/updatecheck/index.php @@ -23,11 +23,11 @@ $ref = @file_get_contents('ebusd-configuration/.git/refs/heads/master'); } ?>

latest ebusd version:

-

latest device firmware:

+

latest device firmware: v5=, v3*=

config files:"; diff --git a/contrib/updatecheck/prepend.inc b/contrib/updatecheck/prepend.inc index 5b422f07..16f4792e 100644 --- a/contrib/updatecheck/prepend.inc +++ b/contrib/updatecheck/prepend.inc @@ -10,7 +10,12 @@ function readVersions($old=false) { global $versions; $val = explode('=', $val); if (count($val)>1) { - $versions[$val[0]] = explode(',', $val[1]); + $key = $val[0]; + $val = explode(',', $val[1]); + if ($key==='device' && count($val)===2 && $val[0]===$val[1]) { + $key = 'devicesame'; + } + $versions[$key] = $val; } }; array_walk($v, $func); @@ -33,8 +38,11 @@ function checkUpdate($ebusdVersion, $ebusdRelease, $architecture, $deviceVersion if ($deviceVersion && @$versions['device']) { $feat = strtok($deviceVersion, '.'); $ver = strtok('.'); - if ($ver && $ver!==$versions['device'][0]) { - $ret .= ', device firmware '.$versions['device'][0].' available'; + if ($ver) { + $key = ($ver===strtok('.')) ? 'devicesame' : 'device'; + if ($ver!==$versions[$key][0]) { + $ret .= ', device firmware '.$versions[$key][0].' available'; + } } } $newerAvailable = 0; diff --git a/src/lib/ebus/device.cpp b/src/lib/ebus/device.cpp index e8acb069..0ab34b44 100755 --- a/src/lib/ebus/device.cpp +++ b/src/lib/ebus/device.cpp @@ -710,8 +710,8 @@ bool Device::handleEnhancedBufferedData(symbol_t* value, ArbitrationState* arbit case 0x0200: case 0x0500: // with firmware version and jumper info case 0x0800: // with firmware version, jumper info, and bootloader version - stream << static_cast(m_infoBuf[0]) << "." // version minor - << std::hex << static_cast(m_infoBuf[1]); // features mask + stream << std::hex << static_cast(m_infoBuf[1]) // features mask + << static_cast(m_infoBuf[0]) << "."; // version minor if (m_infoLen >= 5) { stream << "[" << std::setfill('0') << std::setw(2) << std::hex << static_cast(m_infoBuf[2]) << std::setw(2) << static_cast(m_infoBuf[3]) << "]";
FileGermanEnglish
$k