Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Jun 19, 2024
1 parent c4e07d2 commit a9e9033
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/class/AbeilleCmdPrepare.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ function prepareCmd($priority, $topic, $payload, $phpunit=0) {
break;

default:
cmdLog("debug", ' No prepare function. Forwarding cmd to AbeilleCmdProcess.');
// cmdLog("debug", ' No prepare function. Forwarding cmd to AbeilleCmdProcess.');
// cmdLog("debug", ' msg='.json_encode($msg));

/* Tcharp38 notes:
Expand Down
8 changes: 6 additions & 2 deletions core/class/AbeilleCmdProcess.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4198,6 +4198,10 @@ function processCmd($Command) {
$imgOffset = $Command['imgOffset'];
$maxData = $Command['maxData'];

if (!isset($GLOBALS['ota_fw']) || !isset($GLOBALS['ota_fw'][$manufCode]) || !isset($GLOBALS['ota_fw'][$manufCode][$imgType])) {
cmdLog('debug', " otaImageBlockResponse WARNING: ManufCode=${manufCode}, ImgType=${imgType} => NO FW. Request ignored");
return;
}
$fw = $GLOBALS['ota_fw'][$manufCode][$imgType];
$imgVers = $fw['fileVersion'];
$imgSize = $fw['fileSize'];
Expand Down Expand Up @@ -4241,8 +4245,8 @@ function processCmd($Command) {

if ($imgOffset == "00000000") {
$eqLogic = Abeille::byLogicalId($dest.'/'.$addr, 'Abeille');
$eqPath = $eqLogic->getHumanName();
message::add("Abeille", $eqPath.": Mise-à-jour du firmware démarrée", "");
$eqHName = $eqLogic->getHumanName();
message::add("Abeille", $eqHName.": Mise-à-jour du firmware démarrée", "");
}
return;
}
Expand Down
4 changes: 4 additions & 0 deletions docs/fr_FR/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

- Analyse réseau: Corrections.
- Interne: Correction sauvegarde config dev.
- Mises-à-jour OTA: Amélioration interne.

## 240618-BETA-5

- Modèles d'équipement: Réajout info 'Time-TimeStamp' si manquante.
Expand Down

0 comments on commit a9e9033

Please sign in to comment.