mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
disable ringstream read from flash
This commit is contained in:
parent
024c8fc199
commit
eeb70293e0
|
@ -91,6 +91,9 @@ void StringFormatter::send2(Print * stream,const FSH* format, va_list args) {
|
||||||
{
|
{
|
||||||
const FSH* flash= (const FSH*)va_arg(args, char*);
|
const FSH* flash= (const FSH*)va_arg(args, char*);
|
||||||
|
|
||||||
|
#ifndef ARDUINO_ARCH_ESP32
|
||||||
|
// On ESP32 the reading flashstring from rinstream code
|
||||||
|
// crashes, so don't use the flashstream hack on ESP32
|
||||||
#if WIFI_ON | ETHERNET_ON
|
#if WIFI_ON | ETHERNET_ON
|
||||||
// RingStream has special logic to handle flash strings
|
// RingStream has special logic to handle flash strings
|
||||||
// but is not implemented unless wifi or ethernet are enabled.
|
// but is not implemented unless wifi or ethernet are enabled.
|
||||||
|
@ -98,6 +101,7 @@ void StringFormatter::send2(Print * stream,const FSH* format, va_list args) {
|
||||||
if (stream->availableForWrite()==RingStream::THIS_IS_A_RINGSTREAM)
|
if (stream->availableForWrite()==RingStream::THIS_IS_A_RINGSTREAM)
|
||||||
((RingStream *)stream)->printFlash(flash);
|
((RingStream *)stream)->printFlash(flash);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
stream->print(flash);
|
stream->print(flash);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user