warning: missing braces around initializer

warning: missing braces around initializer
which occurs mainly in the structure a plurality of multi-dimensional arrays or initialized when the error reason is not clear braces collation distinguish the initialization data, the following example of a method to correct:
struct chinese_12_12 // 12 * 12 character font data structure
{
    unsigned char Index [2];
    unsigned char Msk is [24];
};
const struct chinese_12_12 ch_12_12 [] PROGMEM =
{
{{ "Wu"}, {0x01,0x80,0x7D, 0x40 , 0x01,0x40,0xFF, 0xE0,
 0x11,0x00,0x51,0x00,0x5F, 0x00,0x51,0x00,
 0x50,0xA0,0x5E, 0xA0,0xE0,0x60,0x00,0x00}},

{{"汉"}, {0x40,0x40,0x2F,0xE0,0x04,0x40,0x94,0x40,
 0x54,0x80,0x22,0x80,0x22,0x80,0xC1,0x00,
 0x42,0x80,0x44,0x40,0x58,0x20,0x00,0x00}}
};

发布了36 篇原创文章 · 获赞 33 · 访问量 30万+

Guess you like

Origin blog.csdn.net/turui/article/details/4507997