Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    DWC 1.22.5 Java script error:

    Scheduled Pinned Locked Moved
    Firmware installation
    2
    3
    429
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kazolarundefined
      kazolar
      last edited by

      DWC 1.22.5 Java script error:

      Version: 1.22.5
      Message: Uncaught TypeError: Cannot read property 'length' of undefined
      URL: http://10.1.1.108/js/dwc.js
      Line: 7768:51
      Error object: {}

      Then disconnects

      1 Reply Last reply Reply Quote 0
      • kazolarundefined
        kazolar
        last edited by

        I found the error. I have a custom firmware where I have added D axis. The java script doesn't use axisNames consistently, it's mixed through out -- in some places it uses the names from the firmware status response, in other places it's hard coded. I corrected one place, but I still do not see axis D show up in the list buttons for motion/homing -- it's not important since it's an extra axis for the bed lead screws, but the script is very inconsistent. I tried correcting it in other places to try to get it show the D axis, but I don't know the data structure well enough, maybe when I'm bored I'll try to fix it. Why not initialize the settings and axisNames all from the firmware status response, don't rely on hard coded strings?

        1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators
          last edited by

          Thanks for pinning this down, we'll get it sorted.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA