har-in-air / ESP32_IMU_BARO_GPS_VARIO

GPS altimeter/variometer with LCD display, routes with waypoints, data/gps track logging, bluetooth NMEA sentence transmission, wifi AP + webpage configuration
GNU General Public License v3.0
130 stars 27 forks source link

ringbuf_init() fails to clear the arena #7

Closed mhaberler closed 1 year ago

mhaberler commented 1 year ago

https://github.com/har-in-air/ESP32_IMU_BARO_GPS_VARIO/blob/112ff89649b4ce1a4fc41984ccff6bdd61701ebf/src/sensor/ringbuf.cpp#L10

probably should say:

  memset(RingBuf.buffer, 0, RINGBUF_SIZE * sizeof(float));

thanks, really interesting code!

Michael

har-in-air commented 1 year ago

Fixed, thanks for the bug catch...