johnboiles / esp-roomba-mqtt

ESP8266 MQTT Roomba controller (Useful for hooking up old Roombas to Home Assistant)
200 stars 60 forks source link

Warning: control reaches end of non-void function #17

Closed kg333 closed 5 years ago

kg333 commented 5 years ago

Getting the following warning on build:

src\main.cpp: In function 'bool parseRoombaStateFromStreamPacket(uint8_t*, int, RoombaState*)':
src\main.cpp:309:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

Quick fix of adding a "return false" statement to the end of the function caused boot-loops, so this will need a more in-depth look.