scintilla-aircheck / adjutant

An Arduino library for controlling the Scintilla air quality monitoring device
1 stars 0 forks source link

PSTAT.Configure() fails to unlock/lock the LOCK register before/after configuring LMP91000 #2

Closed Kobnar closed 7 years ago

Kobnar commented 7 years ago

Change to:

void PSTAT::Configure(byte addr, LMP91000::Configuration config)
{
    Select(addr);
    LMP91000::isLocked(false);
    LMP91000::Configure(config);
    LMP91000::isLocked(true);
}
Kobnar commented 7 years ago

Totally wrong. Handled in LMP91000 library.