Skip to content

Add a nullptr check in EmotiBitEda #293

@nitin710

Description

@nitin710

Calling EmotiBitEda::writeInfoJson(File &jsonFile) crashes MCU if EmotiBitEda::setup is not called in emotibit.setup.

Add a nullptr check in the segment below

setups[i]["samples_averaged"] = _edlOversampBuffer->capacity();
setups[i]["oversampling_rate"] = _edlOversampBuffer->capacity() * _constants.samplingRate;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions