Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DisplayApp AsciiFont
Fork of GR-PEACH_mbed-os-client-ZXingSample by
Diff: zxing_main.cpp
- Revision:
- 4:076b3dd7c0e6
- Parent:
- 2:6ec5c1c1d41c
- Child:
- 6:4e43b6f8f772
diff -r 426b9477927d -r 076b3dd7c0e6 zxing_main.cpp --- a/zxing_main.cpp Tue Mar 28 11:03:03 2017 +0000 +++ b/zxing_main.cpp Tue Mar 28 12:50:21 2017 +0000 @@ -31,7 +31,7 @@ #include "AsciiFont.h" #endif -#ifdef JPEG_SEND +#if JPEG_SEND #include "JPEG_Converter.h" #include "DisplayApp.h" #endif @@ -199,7 +199,7 @@ } #endif // LCD_ONOFF -#ifdef JPEG_SEND +#if JPEG_SEND /****** Jpeg Send ******/ #define JPEG_ENC_MAX_SIZE (1024 * 63) #define JPEG_SIGNAL_CAP_COMP (1L) @@ -260,7 +260,7 @@ if (vfield_count > 0) { vfield_count--; } -#ifdef JPEG_SEND +#if JPEG_SEND jpegsend_cap_comp(); #endif // JPEG_SEND } @@ -393,7 +393,7 @@ /****** zxing_init ******/ void zxing_init(void (*pfunc)(char * addr, int size)) { -#ifdef JPEG_SEND +#if JPEG_SEND jpegsendTask_init(); #endif // JPEG_SEND #if LCD_ONOFF @@ -425,7 +425,6 @@ /****** zxing_main ******/ int zxing_loop() { - DisplayBase::graphics_error_t error; int decode_result = -1; vector<Ref<Result> > results; char ** decode_str = NULL;