Skip to content

ESP32 crash if enableDebugging() not enabled #49

Closed
@PhilC66

Description

@PhilC66

Subject of the issue

Describe your issue here.
if enableDebugging() not enabled, ESP32 crash when Initialize the SARA mySARA.begin(saraSerial, Sara_Baud)

in SARA_R5_error_t SARA_R5::init(unsigned long baud,
SARA_R5::SARA_R5_init_type_t initType)
beginSerial(baud);
_debugPort->print("initype:");
_debugPort->println(initType);

_debugPort is null if enableDebugging() not enabled

needs to add
if (_printDebug == true) befor

Thanks

Your workbench

  • What platform are you using?
  • What version of the device are you using? Is there a firmware version?
  • How is the device wired to your platform?
  • How is everything being powered?
  • Are there any additional details that may help us help you?

Steps to reproduce

Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue to a gist.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

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