Skip to content

can you read double? #10

Open
Open
@hyansuper

Description

@hyansuper

https://github.com/HEADS-project/arduino_msgpack/blob/master/msgpck.cpp#L327~L331 currently you just treat 8-bytes float as error and discard it.
can you read double the same way you read float, by defining a 8-bytes union?

union double_to_byte {
      double;
      byte b[8];
    } b2d;

also, these 4 lines looks like typo https://github.com/HEADS-project/arduino_msgpack/blob/master/msgpck.cpp#L321~L324, should they be

b &= ...

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