micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

Undefined function in CBOR library

Open Tangerino opened this issue 2 years ago • 3 comments

In CBOR library there are a couple of unidentified functions such as:

unpack_float16

def decode_float16(decoder):
    payload = decoder.read(2)
    return unpack_float16(payload)

and

undefined

special_decoders = {
    20: lambda self: False,
    21: lambda self: True,
    22: lambda self: None,
    23: lambda self: undefined,
    24: decode_simple_value,
    25: decode_float16,
    26: decode_float32,
    27: decode_float64,
    31: lambda self: break_marker,
}

Tangerino avatar Apr 20 '23 11:04 Tangerino

@iabdalkader hi Ibrahim, would you be able to take a look at this? Thanks

jimmo avatar Jul 21 '23 05:07 jimmo

It seems it was not implemented in the original library, I have no idea why, but it should be easy to add.

iabdalkader avatar Jul 21 '23 15:07 iabdalkader

Anyone want to make a MR for this functionality? :)

jonnor avatar Aug 25 '24 10:08 jonnor