Skip to content

[Bug]: Tlora-Pager fter playing the notification, voltage does not disappear from the speaker #8883

Description

@polarikus

Category

Other

Hardware

Other

Is this bug report about any UI component firmware like InkHUD or Meshtatic UI (MUI)?

  • Meshtastic UI aka MUI colorTFT
  • InkHUD ePaper
  • OLED slide UI on any display

Firmware Version

2.7.15.567b8ea

Description

Are there any reasons to check the condition:
audioThread->isPlaying()
Before stopping audioThread?

The thing is, if no melody is playing, then audioThread never stops.
Because of this, the speaker pin is never set to LOW state:

class AudioThread : public concurrency::OSThread
method: stop()

#ifdef T_LORA_PAGER
        LOG_DEBUG("AudioThread: EXPANDS_AMP_EN, LOW");
        io.digitalWrite(EXPANDS_AMP_EN, LOW);
#endif

Relevant log output

ExternalNotificationModule::stopNow()
#ifdef HAS_I2S
    LOG_INFO("Stop audioThread playback");
    if (audioThread->isPlaying())
        audioThread->stop();
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions