Skip to content

Alpao asdkGetLastError message is not a null-terminated string #4

Description

@carandraug

From Python Microscope code comments for alpao deformable mirrors:

    ## asdkGetLastError should write a null-terminated string but
    ## doesn't seem like it (at least CannotOpenCfg does not ends in
    ## null) so we empty the buffer ourselves before using it.  Note
    ## that even when there are no errors, we need to empty the buffer
    ## because the buffer has the message 'No error in stack'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions