From 5d9a718430e6945c2baa7f643cf96000940f7b37 Mon Sep 17 00:00:00 2001 From: FredericG Date: Sun, 20 Jun 2010 17:59:48 +0000 Subject: [PATCH] Made pios_com_num_devices const git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@837 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/AHRS/pios_board.c | 2 +- flight/PiOS/inc/pios_com_priv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/AHRS/pios_board.c b/flight/AHRS/pios_board.c index 99c1ca7c1..bda06add5 100644 --- a/flight/AHRS/pios_board.c +++ b/flight/AHRS/pios_board.c @@ -226,7 +226,7 @@ struct pios_com_dev pios_com_devs[] = { }, }; -uint8_t pios_com_num_devices = NELEMENTS(pios_com_devs); +const uint8_t pios_com_num_devices = NELEMENTS(pios_com_devs); #endif /* PIOS_INCLUDE_COM */ diff --git a/flight/PiOS/inc/pios_com_priv.h b/flight/PiOS/inc/pios_com_priv.h index 8f91215e4..5b285edac 100644 --- a/flight/PiOS/inc/pios_com_priv.h +++ b/flight/PiOS/inc/pios_com_priv.h @@ -35,7 +35,7 @@ struct pios_com_dev { }; extern struct pios_com_dev pios_com_devs[]; -extern uint8_t pios_com_num_devices; +extern const uint8_t pios_com_num_devices; #endif /* PIOS_COM_PRIV_H */