CMXX - Firmware update improvements
This commit is contained in:
@@ -215,8 +215,15 @@ if (isset($post_content['sn']) && isset($post_content['payload'])){
|
||||
}
|
||||
else {
|
||||
//GET HW + SW from object
|
||||
$hw_version = $post_content['payload']['logdetails']['HW'];
|
||||
$sw_version = $post_content['payload']['logdetails']['HEX_FW'];
|
||||
$hw_version = $post_content['testdetails']['logdetails']['HW'] ?? '';
|
||||
$fw_version = $post_content['testdetails']['logdetails']['FW'] ?? '';
|
||||
$sw_version = $post_content['testdetails']['logdetails']['HEX_FW'] ?? '';
|
||||
|
||||
//GET COMMITCODE
|
||||
$commitCode = compareCommitCodes($sw_version,$fw_version);
|
||||
|
||||
//IF COMMITCODE IS EMPTY THEN RETURN HEX_FW
|
||||
$sw_version = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $sw_version;
|
||||
}
|
||||
|
||||
//check SW_VERSION for filetype
|
||||
|
||||
Reference in New Issue
Block a user