sysinfo: fix device status report

The OTP word read was incorrect. HW_OCOTP_CFG5 corresponds to bank 0 word 6.

https://jira.digi.com/browse/ADK4A-1129

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2016-11-08 14:51:52 +01:00
parent 32a234b0d1
commit e0b7905d67
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ make_report(){
echo "--------------------------------------"
echo ""
if [ "$(($(cat /sys/fsl_otp/HW_OCOTP_LOCK) & 2))" != "0" ]; then
if [ "$(($(cat /sys/fsl_otp/HW_OCOTP_CFG5) & 2))" != "0" ]; then
echo "Device status: [CLOSED]"
else
echo "Device status: [OPEN]"