Skip to content

Commit

Permalink
fix for non-ESP32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Oct 7, 2023
1 parent e5409d1 commit f01895b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion software/firmware/source/libraries/LibAPRS_ESP32/AFSK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,13 @@ void AFSK_init(Afsk *afsk, bool rx)
// Set phase increment
afsk->phaseInc = MARK_INC;

#if defined(ESP32)
#if !defined(I2S_INTERNAL) || defined(CONFIG_IDF_TARGET_ESP32S3)
if (rx) {
adcq.begin(); // allocate memory for queue
}
#endif
#endif /* NOT I2S_INTERNAL || CONFIG_IDF_TARGET_ESP32S3 */
#endif /* ESP32 */

// Initialise FIFO buffers
#if defined(CONFIG_IDF_TARGET_ESP32S3)
Expand Down

0 comments on commit f01895b

Please sign in to comment.