Skip to content

Commit 989d096

Browse files
Generalize support beyond ESP8266
1 parent 5431f6e commit 989d096

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Flexible logging library for the Arduino SDK. This library allows the same loggi
2020

2121
## Dependencies
2222

23-
This library requires the following Arduino library to be installed on your system if you are using a non-ESP8266 setup:
23+
This library requires the following Arduino library to be installed on your system if you are using a non-ESP8266/ESP32 setup:
2424

2525
* [embeddedartistry/arduino-printf](https://github.com/embeddedartistry/arduino-printf)
2626

@@ -280,7 +280,7 @@ These settings can be changed in the build system, but it is easiest to define t
280280

281281
By default, the logging library does not echo logging calls to the serial console. You can change the default setting at compile-time using the `LOG_ECHO_EN_DEFAULT` definition.
282282

283-
The logging library will print the output using the `printf` function. To change that output, see the instructions in the [embeddedartistry/arduino-printf](https://github.com/embeddedartistry/arduino-printf) library. If you are using the ESP8266, we use the built-in `printf` support instead of the external library.
283+
The logging library will print the output using the `printf` function. To change that output, see the instructions in the [embeddedartistry/arduino-printf](https://github.com/embeddedartistry/arduino-printf) library. If you are using the ESP8266 or ESP32, we use the built-in `printf` support instead of the external library.
284284

285285
The setting can be changed in your build system or by defining the desired value in `platform_logger.h` before including the necessary logging library header.
286286

src/ArduinoLogger.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ARDUINO_LOGGER_H_
22
#define ARDUINO_LOGGER_H_
33

4-
#ifdef ESP8266
4+
#ifdef __XTENSA__
55
#include <ets_sys.h>
66
#include <internal/lambda.h>
77
#else
@@ -11,7 +11,7 @@
1111
#include <utility>
1212
#endif
1313

14-
#ifdef ESP8266
14+
#ifdef __XTENSA__
1515
void _putchar(char c);
1616
#endif
1717

@@ -279,7 +279,7 @@ class LoggerBase
279279
#endif
280280
}
281281

282-
#ifdef ESP8266
282+
#ifdef __XTENSA__
283283
/// Prints directly to the log with no extra characters added to the message.
284284
void print(const char* format, ...) noexcept
285285
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy