Skip to content

Use of tcode = l in Camera on macOS fails #23

@onekiloparsec

Description

@onekiloparsec

Hello,

I am reading an image from a Zwo ASI6200 MM Pro through an INDIGO Server running on my MacBookPro (M3), and using the Alpaca Agent for interacting with the camera.

The reading of the imagearray fails, because the tcode detected is l (ImageArrayElementTypes.Int32.value in the Camera class, line 2421), which has a length of 8 on my Mac and not 4.

Given the byte length (244685952), the data_start is not a multiple of it, and the reading crashes.

I am not entirely familiar with these details, but it seems a tcode = 'i' instead of l would make the thing portable on both Windows and Linux/macOS (according to ChatGPT...).

I'll test it on a fork, and send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions