Seeed-Studio / Grove_Human_Presence_Sensor

Library for the Grove - Human Presence Sensor
MIT License
6 stars 3 forks source link

Fix reorder error if used with platformIO #3

Closed Zercerium closed 3 years ago

Zercerium commented 3 years ago

I get the following error when I use this lib with platformIO: \Grove_Human_Presence_Sensor.cpp:406:11: error: 'Smoother::m_average_weight' will be initialized after [-Werror=reorder] float m_average_weight;

These small reordering should fix the issue, so that people can use this lib without modification.