Skip to content

[BUG] Multiple typecasting issues in this library. #23

Open
@yashmulgaonkar

Description

@yashmulgaonkar

This is a very poorly written library, with blatant errors.

There are multiple instances where variables are incorrectly typecasted.
Durations are requested in milliseconds, but are typecasted as uint8_t.

Here is one such example:
tOn requested as milliseconds:
void SX1509::blink(uint8_t pin, unsigned long tOn, unsigned long tOff, uint8_t onIntensity, uint8_t offIntensity)

Later typecasted as uint8_t:
void SX1509::setupBlink(uint8_t pin, uint8_t tOn, uint8_t tOff, uint8_t onIntensity, uint8_t offIntensity, uint8_t tRise, uint8_t tFall, bool log)

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