Skip to content

Error when comiling in Arduino IDE #12

@rstrich

Description

@rstrich

Have built and used your default pin layout, however get the following error when compiling using Arduino IDE, any suggestions?:-

C:[DocRoot]\Arduino\useless-box\proximity-sensor.cpp: In member function 'uint8_t ProximitySensor::getProximity()':
C:[DocRoot]\Arduino\useless-box\proximity-sensor.cpp:45:19: error: control reaches end of non-void function [-Werror=return-type]
45 | Serial.println(F("ProximitySensor: Reading proximity value FAILED!"));
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus.exe: some warnings being treated as errors
Multiple libraries were found for "Servo.h"
Used: C:*\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\Servo
Not used: C:*
\AppData\Local\Arduino15\libraries\Servo
exit status 1

Compilation error: control reaches end of non-void function [-Werror=return-type]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions