Skip to content
Snippets Groups Projects
Commit aa31e0ca authored by Mick Michalski's avatar Mick Michalski
Browse files

Added more zeros for padding

parent 5c0a170b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ get_fuse () {
local name=$1
local pad=$2
# read the fuse and pad the left with zeros to the size of $pad
local fuse="00000"$(cat /sys/fsl_otp/$name | cut -b 3-)
local fuse="0000000000"$(cat /sys/fsl_otp/$name | cut -b 3-)
len=$(( ${#fuse} - $pad ))
echo ${fuse:$len}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment