mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-25 17:13:46 +02:00
39 lines
891 B
C++
39 lines
891 B
C++
#include "main_globals.hpp"
|
|
#include "esp_log.h"
|
|
|
|
// used to force starting the stream setup process via commands
|
|
extern void force_activate_streaming();
|
|
|
|
static bool s_startupCommandReceived = false;
|
|
bool getStartupCommandReceived()
|
|
{
|
|
return s_startupCommandReceived;
|
|
}
|
|
|
|
void setStartupCommandReceived(bool startupCommandReceived)
|
|
{
|
|
s_startupCommandReceived = startupCommandReceived;
|
|
}
|
|
|
|
// Global pause state
|
|
static bool s_startupPaused = false;
|
|
bool getStartupPaused()
|
|
{
|
|
return s_startupPaused;
|
|
}
|
|
|
|
void setStartupPaused(bool startupPaused)
|
|
{
|
|
s_startupPaused = startupPaused;
|
|
}
|
|
|
|
// Function to manually activate streaming
|
|
void activateStreaming(void *arg)
|
|
{
|
|
force_activate_streaming();
|
|
}
|
|
|
|
// USB handover state
|
|
static bool s_usbHandoverDone = false;
|
|
bool getUsbHandoverDone() { return s_usbHandoverDone; }
|
|
void setUsbHandoverDone(bool done) { s_usbHandoverDone = done; } |