1
2
3
4
5
6
7
8
9
10
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Debug)]
pub enum Error<E> {
    /// Failed I2C communication
    I2C(E),
    /// Failed checksum validation
    BadChecksum,
    /// Couldn't find the "magic bytes" that signal the start of a data frame
    BadMagic,
}