Skip to content

Unclear about size of _BUFFER #37

Closed
@reyeslucero

Description

@reyeslucero

I am confused about the initialization of the global buffer for the radio _BUFFER.
It should be 256 bytes which is the size specified in the radio's data sheet.
However, it seems at though its only being initialized to 10 bytes?
Here is the code for initialization:

# Global buffer to hold data sent and received with the chip.  This must be
# at least as large as the FIFO on the chip (256 bytes)!  Keep this on the
# class level to ensure only one copy ever exists (with the trade-off that
# this is NOT re-entrant or thread safe code by design).
_BUFFER = bytearray(10)  

If someone could provide insight into the behavior of _BUFFER, that would be greatly appreciated.

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