fix name sclashes in esp8266 SAM

This commit is contained in:
gemu2015 2020-08-15 17:17:13 +02:00
parent 34a0650b00
commit 45a464082a
11 changed files with 27 additions and 24 deletions

View File

@ -25,6 +25,7 @@
#ifdef ESP32
#include <HTTPClient.h>
#else
#include <WiFiClient.h>
#include <ESP8266HTTPClient.h>
#endif
#include "AudioFileSource.h"
@ -63,4 +64,3 @@ class AudioFileSourceHTTPStream : public AudioFileSource
#endif

View File

@ -23,9 +23,9 @@
#include <Arduino.h>
#ifdef ESP32
#include <HTTPClient.h>
// #include <HTTPClient.h>
#else
#include <ESP8266HTTPClient.h>
// #include <ESP8266HTTPClient.h>
#endif
#include "AudioFileSourceHTTPStream.h"
@ -47,4 +47,3 @@ class AudioFileSourceICYStream : public AudioFileSourceHTTPStream
#endif

View File

@ -22,6 +22,10 @@
#define _AUDIOFILESOURCESD_H
#include "AudioFileSource.h"
#ifdef ESP8266
#include <SdFat.h>
#include <SDFS.h>
#endif
#include <SD.h>
@ -46,4 +50,3 @@ class AudioFileSourceSD : public AudioFileSource
#endif

View File

@ -272,6 +272,8 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
stream = NULL;
frame = NULL;
synth = NULL;
uint32_t size = buffLen + sizeof(struct mad_stream) + sizeof(struct mad_frame) + sizeof(struct mad_synth);
audioLogger->printf_P("OOM error in MP3: Want %d bytes\n", size);
return false;
}
}
@ -349,4 +351,3 @@ extern "C" {
}
#endif
}

View File

@ -2,7 +2,7 @@
#define RENDERTABS_H
#include <pgmspace.h>
#include "debug.h"
#include "samdebug.h"
#if debug
#define PROGMEM
#endif

View File

@ -2,7 +2,7 @@
#define SAMTABS_H
#include <pgmspace.h>
#include "debug.h"
#include "samdebug.h"
#if debug
#define PROGMEM
#endif

View File

@ -2,7 +2,7 @@
#include <string.h>
#include "reciter.h"
#include "ReciterTabs.h"
#include "debug.h"
#include "samdebug.h"
#include "SamData.h"
unsigned char A, X, Y;

View File

@ -5,7 +5,7 @@
#include "render.h"
#include "RenderTabs.h"
#include "debug.h"
#include "samdebug.h"
//extern int debug;
#include <pgmspace.h>
#include "SamData.h"

View File

@ -32,7 +32,7 @@ default_envs =
; tasmota-BR
; tasmota-CN
; tasmota-CZ
tasmota-DE
; tasmota-DE
; tasmota-ES
; tasmota-FR
; tasmota-GR