From c8482531fbaeb75aaa58d7273853d0d1b0914713 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 17 Jul 2018 09:48:03 +0200 Subject: i2cdetect: Do not allocate i2c_status array on stack --- src/app/i2cdetect/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index 32f3a18..58406c6 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -16,9 +16,10 @@ void loop(void) //moody.toggleBlue(); } +unsigned int i2c_status[128 / (8 * sizeof(unsigned int)) + 1]; + int main(void) { - unsigned int i2c_status[128 / (8 * sizeof(unsigned int)) + 1]; arch.setup(); gpio.setup(); -- cgit v1.2.3