altos: Fix config upgrade from 1.24 to 1.25
authorKeith Packard <keithp@keithp.com>
Fri, 24 Sep 2021 16:43:15 +0000 (09:43 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 24 Sep 2021 23:30:51 +0000 (16:30 -0700)
commit236200c028dd48bbffbde1278d8b1c6de39fbdb1
treebd30db08fa1f05dab74f22d4e38331b3b2282e80
parent1115f566119deaa508f753576703917f28ef54b7
altos: Fix config upgrade from 1.24 to 1.25

Alignment of pyro field changed due to increased size of fields which
shifted the whole struct by two bytes, leading to mis-updating the struct.
Fix that by creating a mirror of the ao_config type for version 1.24 and
then using that to fetch the old data.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_config.h
src/kernel/ao_pyro.c