summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-07-17 09:48:03 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-07-17 09:48:03 +0200
commitc8482531fbaeb75aaa58d7273853d0d1b0914713 (patch)
treed14ac56cb37f712c243bac937c4ed6c340ed881e
parent8b71c58ab33c788bb958f04e46ea248c72eddc42 (diff)
i2cdetect: Do not allocate i2c_status array on stack
-rw-r--r--src/app/i2cdetect/main.cc3
1 files changed, 2 insertions, 1 deletions
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();