On Sun, Oct 23, 2011 at 04:13, Pierre-Hugues Husson <[email protected]> wrote: > + { > + //Resume on home key press > + char cmd[]={ 0x05, 0x03, 0x01, 0x02}; > + cmd[2]=!!wakeup_on_home_key; > + nvec_write_async(nvec, cmd, sizeof(cmd)); > + } > +} It is better to use the same coding style as was already in nvec nvec_write_async(nvec, cmd, sizeof(cmd)); ===> nvec_write_async(nvec, "\x05\x03\x01\x02", 4);
-- Leon Romanovsky | Independent Linux Consultant www.leon.nu | [email protected] _______________________________________________ Mailing list: https://launchpad.net/~ac100 Post to : [email protected] Unsubscribe : https://launchpad.net/~ac100 More help : https://help.launchpad.net/ListHelp

