microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 25 forks source link

packet identifier already used #25

Closed pelikhan closed 3 years ago

pelikhan commented 4 years ago

Try this in https://microsoft.github.io/jacdac-ts/tools/service-editor

# Pressure Button

A button with pressure reading.

        identifier: 0x16e8c679
        extends: button

## Registers

    ro pressure2: u8 @ reading

Reads the current pressure of the button.

image

mmoskal commented 4 years ago

Yeah, currently there is no override facility. We need to think what it actually means though - is it allowed to change return types?

pelikhan commented 4 years ago

I think the problem is that the tool should allocate a new register

pelikhan commented 4 years ago

I see it’s a reading so that’s the problem?

mmoskal commented 4 years ago

Yes. You have to allocate registers, @ 0x180 or something

mmoskal commented 4 years ago

Note that if it's not. the reading register, it will not stream.