From 276ffd7f4479035342c8a3a00238b5955d85bf30 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 27 Jun 2012 02:30:39 -0300 Subject: [PATCH] fw/image.* (image_secret): make image_secret global, for future sharing --- fw/image.c | 2 +- fw/image.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fw/image.c b/fw/image.c index 1feaa83..6d70dca 100644 --- a/fw/image.c +++ b/fw/image.c @@ -32,7 +32,7 @@ static bool failed; const struct line *image = images[0]; -static const uint8_t image_secret[2*PAYLOAD] PROGMEM = { +const uint8_t image_secret[2*PAYLOAD] PROGMEM = { #include "image-secret.inc" }; diff --git a/fw/image.h b/fw/image.h index 5936186..c53b0b3 100644 --- a/fw/image.h +++ b/fw/image.h @@ -17,6 +17,10 @@ #include #include +#include + +#include "proto.h" + #define MAX_LINES 80 @@ -28,5 +32,6 @@ struct line { extern const struct line *image; +extern const uint8_t image_secret[2*PAYLOAD] PROGMEM; #endif /* !IMAGE_H */