summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-18 22:53:43 +0100
committerFlorent Duchon2012-12-24 17:47:58 +0100
commit6c2bdfca2350d0b2ebf69678c9d017b34a385294 (patch)
tree68fb1da525803ee331a048621334e0884d9b2fbc /digital/beacon
parent55b34949dc2bd656c0172f597b913eb5e831d247 (diff)
digital/beacon: old_jack variable must be defined as static
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/beacon/src/misc.c b/digital/beacon/src/misc.c
index f6b6dda8..c453c218 100644
--- a/digital/beacon/src/misc.c
+++ b/digital/beacon/src/misc.c
@@ -49,7 +49,7 @@ void jack_on_off(void)
/* This function sends the jack status to the slave beacons*/
void jack_update_status(uint8_t value)
{
- uint8_t old_jack = 0;
+ static uint8_t old_jack = 0;
if(value != old_jack)
{
network_send_data(NETWORK_JACK_STATE,value);