mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
Fix defines
This commit is contained in:
@@ -25,7 +25,7 @@ class AudioThread : public concurrency::OSThread
|
|||||||
|
|
||||||
void beginRttl(const void *data, uint32_t len)
|
void beginRttl(const void *data, uint32_t len)
|
||||||
{
|
{
|
||||||
#ifdef USE_XL9555
|
#ifdef T_LORA_PAGER
|
||||||
io.digitalWrite(EXPANDS_AMP_EN, HIGH);
|
io.digitalWrite(EXPANDS_AMP_EN, HIGH);
|
||||||
#endif
|
#endif
|
||||||
setCPUFast(true);
|
setCPUFast(true);
|
||||||
@@ -53,7 +53,7 @@ class AudioThread : public concurrency::OSThread
|
|||||||
rtttlFile = nullptr;
|
rtttlFile = nullptr;
|
||||||
|
|
||||||
setCPUFast(false);
|
setCPUFast(false);
|
||||||
#ifdef USE_XL9555
|
#ifdef T_LORA_PAGER
|
||||||
io.digitalWrite(EXPANDS_AMP_EN, LOW);
|
io.digitalWrite(EXPANDS_AMP_EN, LOW);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -66,14 +66,14 @@ class AudioThread : public concurrency::OSThread
|
|||||||
i2sRtttl = nullptr;
|
i2sRtttl = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_XL9555
|
#ifdef T_LORA_PAGER
|
||||||
io.digitalWrite(EXPANDS_AMP_EN, HIGH);
|
io.digitalWrite(EXPANDS_AMP_EN, HIGH);
|
||||||
#endif
|
#endif
|
||||||
ESP8266SAM *sam = new ESP8266SAM;
|
ESP8266SAM *sam = new ESP8266SAM;
|
||||||
sam->Say(audioOut, text);
|
sam->Say(audioOut, text);
|
||||||
delete sam;
|
delete sam;
|
||||||
setCPUFast(false);
|
setCPUFast(false);
|
||||||
#ifdef USE_XL9555
|
#ifdef T_LORA_PAGER
|
||||||
io.digitalWrite(EXPANDS_AMP_EN, LOW);
|
io.digitalWrite(EXPANDS_AMP_EN, LOW);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user