crownstone / bluenet

Bluenet is the in-house firmware on Crownstone hardware. Functions: switching, dimming, energy monitoring, presence detection, indoor localization, switchcraft.
https://crownstone.rocks
91 stars 62 forks source link

Bug: IPC indices in RAM #133

Closed mrquincle closed 2 years ago

mrquincle commented 2 years ago

This introduces a bug. The bluenet code sets data on its own position: IPC_INDEX_CROWNSTONE_APP. It gets data from the position IPC_INDEX_MICROAPP. For the microapp it's the other way around.

Now the callbacks won't work anymore.

Originally posted by @mrquincle in https://github.com/crownstone/bluenet/pull/132#r730049664

vliedel commented 2 years ago

You're right, fixed it in: https://github.com/crownstone/bluenet/commit/db82039e89138eff0ea7144baaf18c8d30534cb6