mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
ipod6gboot: Silence build warning introduced in af2a3b74f4
(ipod6g doesn't utilize the QR Code stuff used by the nano3g) Change-Id: I99c9e565b5a4c7212662eab097f1bae2f4ed0ea4
This commit is contained in:
parent
af2a3b74f4
commit
bdbbb753c5
1 changed files with 38 additions and 30 deletions
|
|
@ -65,6 +65,9 @@
|
|||
#include "norboot-target.h"
|
||||
#endif
|
||||
|
||||
#if defined(IPOD_NANO3G)
|
||||
#define USE_QRCODE
|
||||
#endif
|
||||
|
||||
#define ERR_RB 0
|
||||
#define ERR_OF 1
|
||||
|
|
@ -887,6 +890,40 @@ static void devel_menu(void)
|
|||
}
|
||||
#endif /* S5L87XX_DEVELOPMENT_BOOTLOADER */
|
||||
|
||||
#ifdef IPOD_NANO3G
|
||||
static const char qr_code_data_nano[][22] = {
|
||||
/*
|
||||
* qrencode -o - -t ascii -s 1 -m 0 -i 'https://rockbox.org/IPNBL' | \
|
||||
* cut -c 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41 | \
|
||||
* awk '{ print "\"" $0 "\"," }'
|
||||
*/
|
||||
|
||||
"####### # #######",
|
||||
"# # ## # # #",
|
||||
"# ### # ## # # ### #",
|
||||
"# ### # # # # # ### #",
|
||||
"# ### # # ## # ### #",
|
||||
"# # #### # #",
|
||||
"####### # # # #######",
|
||||
" ## ",
|
||||
"##### ######## # # # ",
|
||||
"# # #### # # #",
|
||||
" # # # #",
|
||||
"## # # # # ## #### ",
|
||||
"# ### ## ### ",
|
||||
" ## # # ####",
|
||||
"####### ## # ### #",
|
||||
"# # ### # ## ",
|
||||
"# ### # # #### ###",
|
||||
"# ### # ### ### ## ",
|
||||
"# ### # #### # # ",
|
||||
"# # # ## ## # #",
|
||||
"####### # ## ## ",
|
||||
};
|
||||
#define qr_code_data qr_code_data_nano
|
||||
#endif
|
||||
|
||||
#ifdef USE_QRCODE
|
||||
static void lcd_qr_code(const char *data, unsigned int row_stride,
|
||||
int x, int y, unsigned int qr_cols, unsigned int qr_rows,
|
||||
unsigned int modules_scale, unsigned int margin_thickness)
|
||||
|
|
@ -919,41 +956,12 @@ static void lcd_qr_code(const char *data, unsigned int row_stride,
|
|||
lcd_update();
|
||||
}
|
||||
|
||||
static const char qr_code_data[][22] = {
|
||||
/*
|
||||
* qrencode -o - -t ascii -s 1 -m 0 -i 'https://rockbox.org/IPNBL' | \
|
||||
* cut -c 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41 | \
|
||||
* awk '{ print "\"" $0 "\"," }'
|
||||
*/
|
||||
|
||||
"####### # #######",
|
||||
"# # ## # # #",
|
||||
"# ### # ## # # ### #",
|
||||
"# ### # # # # # ### #",
|
||||
"# ### # # ## # ### #",
|
||||
"# # #### # #",
|
||||
"####### # # # #######",
|
||||
" ## ",
|
||||
"##### ######## # # # ",
|
||||
"# # #### # # #",
|
||||
" # # # #",
|
||||
"## # # # # ## #### ",
|
||||
"# ### ## ### ",
|
||||
" ## # # ####",
|
||||
"####### ## # ### #",
|
||||
"# # ### # ## ",
|
||||
"# ### # # #### ###",
|
||||
"# ### # ### ### ## ",
|
||||
"# ### # #### # # ",
|
||||
"# # # ## ## # #",
|
||||
"####### # ## ## ",
|
||||
};
|
||||
|
||||
enum {
|
||||
QR_COLS = sizeof(qr_code_data[0]) - 1,
|
||||
QR_ROWS = sizeof(qr_code_data) / sizeof(qr_code_data[0]),
|
||||
QR_STRIDE = sizeof(qr_code_data[0]),
|
||||
};
|
||||
#endif /* USE_QRCODE */
|
||||
|
||||
void main(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue