diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 09:48:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-07-17 09:48:03 +0200 |
commit | c8482531fbaeb75aaa58d7273853d0d1b0914713 (patch) | |
tree | d14ac56cb37f712c243bac937c4ed6c340ed881e /src/app | |
parent | 8b71c58ab33c788bb958f04e46ea248c72eddc42 (diff) |
i2cdetect: Do not allocate i2c_status array on stack
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/i2cdetect/main.cc | 3 |
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(); |