Jump to content

Recommended Posts

Hi All,

Not sure if this is only an issue with the squirrels I recently obtained, but the inbuilt LED script had issues with anything under a 1 second blink time (eg. 999 instead of 1000) in which the LED would blinking every 1ms instead

This for me was due to the included BASH environment being unable to handle floating maths, a simple fix was to change it to use awk for this function

Simple change the line of code for the function convert() to the one below

function convert() {
        echo $(if [[ $1 -lt 20 ]]; then awk "BEGIN {print 20/1000}"; else awk "BEGIN {print $1/1000}"; fi)
}

Hopefully this helps, and if it is a bug in the firmware hopefully it can be fixed long term :)

  • Upvote 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...