nxstyle: Fixup existing long lines
This commit is contained in:
parent
14c6d976fc
commit
d38351cfd0
@ -98,11 +98,14 @@ static inline void btsak_update_ipv6addr(FAR struct btsak_s *btsak)
|
|||||||
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[3] = 0;
|
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[3] = 0;
|
||||||
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[4] = HTONS(0x0200);
|
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[4] = HTONS(0x0200);
|
||||||
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[5] =
|
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[5] =
|
||||||
((uint16_t)btsak->ep_btaddr.val[0] << 8 | (uint16_t)btsak->ep_btaddr.val[1]);
|
((uint16_t)btsak->ep_btaddr.val[0] << 8 |
|
||||||
|
(uint16_t)btsak->ep_btaddr.val[1]);
|
||||||
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[6] =
|
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[6] =
|
||||||
((uint16_t)btsak->ep_btaddr.val[2] << 8 | (uint16_t)btsak->ep_btaddr.val[3]);
|
((uint16_t)btsak->ep_btaddr.val[2] << 8 |
|
||||||
|
(uint16_t)btsak->ep_btaddr.val[3]);
|
||||||
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[7] =
|
btsak->ep_in6addr.sin6_addr.in6_u.u6_addr16[7] =
|
||||||
((uint16_t)btsak->ep_btaddr.val[4] << 8 | (uint16_t)btsak->ep_btaddr.val[5]);
|
((uint16_t)btsak->ep_btaddr.val[4] << 8 |
|
||||||
|
(uint16_t)btsak->ep_btaddr.val[5]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -61,7 +61,8 @@
|
|||||||
struct btsak_command_s
|
struct btsak_command_s
|
||||||
{
|
{
|
||||||
FAR const char *name;
|
FAR const char *name;
|
||||||
CODE void (*handler)(FAR struct btsak_s *btsak, int argc, FAR char *argv[]);
|
CODE void (*handler)(FAR struct btsak_s *btsak, int argc,
|
||||||
|
FAR char *argv[]);
|
||||||
FAR const char *help;
|
FAR const char *help;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -233,7 +234,8 @@ void btsak_cmd_gatt(FAR struct btsak_s *btsak, int argc, FAR char *argv[])
|
|||||||
|
|
||||||
if (cmd == NULL)
|
if (cmd == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: Unrecognized gatt command: %s\n", argv[argind]);
|
fprintf(stderr, "ERROR: Unrecognized gatt command: %s\n",
|
||||||
|
argv[argind]);
|
||||||
btsak_gatt_showusage(btsak->progname, argv[0], EXIT_SUCCESS);
|
btsak_gatt_showusage(btsak->progname, argv[0], EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -664,7 +666,8 @@ void btsak_showusage(FAR const char *progname, int exitcode)
|
|||||||
fprintf(stderr, "\nUsage:\n\n");
|
fprintf(stderr, "\nUsage:\n\n");
|
||||||
fprintf(stderr, "\t%s <ifname> <cmd> [option [option [option...]]]\n",
|
fprintf(stderr, "\t%s <ifname> <cmd> [option [option [option...]]]\n",
|
||||||
progname);
|
progname);
|
||||||
fprintf(stderr, "\nWhere <cmd> [option [option [option...]]] is one of:\n\n");
|
fprintf(stderr,
|
||||||
|
"\nWhere <cmd> [option [option [option...]]] is one of:\n\n");
|
||||||
|
|
||||||
for (i = 0; i < NCOMMANDS; i++)
|
for (i = 0; i < NCOMMANDS; i++)
|
||||||
{
|
{
|
||||||
@ -698,9 +701,11 @@ void btsak_gatt_showusage(FAR const char *progname, FAR const char *cmd,
|
|||||||
|
|
||||||
fprintf(stderr, "%s: Generic Attribute (GATT) commands:\n", cmd);
|
fprintf(stderr, "%s: Generic Attribute (GATT) commands:\n", cmd);
|
||||||
fprintf(stderr, "Usage:\n\n");
|
fprintf(stderr, "Usage:\n\n");
|
||||||
fprintf(stderr, "\t%s <ifname> %s [-h] <cmd> [option [option [option...]]]\n",
|
fprintf(stderr,
|
||||||
|
"\t%s <ifname> %s [-h] <cmd> [option [option [option...]]]\n",
|
||||||
progname, cmd);
|
progname, cmd);
|
||||||
fprintf(stderr, "\nWhere <cmd> [option [option [option...]]] is one of:\n\n");
|
fprintf(stderr,
|
||||||
|
"\nWhere <cmd> [option [option [option...]]] is one of:\n\n");
|
||||||
|
|
||||||
for (i = 0; i < GATT_NCOMMANDS; i++)
|
for (i = 0; i < GATT_NCOMMANDS; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user