Skip to content

Wrong parameter in example code #62

@ZhekaS

Description

@ZhekaS

There should be buffer instead of alarm here:

impl Ls1234<'a> {
pub fn new(i2c: &'a dyn I2CDevice, buffer: &'static mut [u8]) -> Ls1234<'a> {
Ls1234 {
i2c: i2c,
alarm: alarm,
state: Cell::new(State::Disabled),
client: OptionalCell::empty(),
}
}
}

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