Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART (Conflicting declaration 'using SoftwareSerial) in esp8266 v3.1.2 #2136

Open
samuel-troina opened this issue Sep 5, 2024 · 1 comment

Comments

@samuel-troina
Copy link

samuel-troina commented Sep 5, 2024

Environment

  • Scope: desktop IDE
  • Version: 0.38.0
  • OS: Windows 10
  • Machine: i7, 16 GB RAM

Steps to reproduce

In a new project, include only the "xod/uart/soft-uart" Patch and compile. This problem only occurs in version 3.1.2 of ESP8266, when performing the same procedure in previous versions the project is compiled normally.

Console output

In file included from C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:1290:
C:\Users\samuel\xod_packages_\packages\esp8266\hardware\esp8266\3.1.2\libraries\SoftwareSerial\src/SoftwareSerial.h:432:7: error: conflicting declaration 'using SoftwareSerial = using UART = class EspSoftwareSerial::BasicUARTEspSoftwareSerial::GpioCapabilities'
432 | using SoftwareSerial = EspSoftwareSerial::UART;
| ^~~~~~~~~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:464:7: note: previous declaration as 'class SoftwareSerial'
464 | class SoftwareSerial;
| ^~~~~~~~~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:1296:20: error: field '_serial' has incomplete type 'SoftwareSerial'
1296 | SoftwareSerial _serial;
| ^~~~~~~

C:\Users\samuel\AppData\Local\Temp\xod_temp_sketchbookXqsrq6\xod_1725538749360_sketch\xod_1725538749360_sketch.ino:464:7: note: forward declaration of 'class SoftwareSerial'
464 | class SoftwareSerial;
| ^~~~~~~~~~~~~~

Error during build: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@samuel-troina and others