sx127x_demo.c: Appease nxstyle
This commit is contained in:
parent
c5c327ab02
commit
53f9f600d2
@ -381,7 +381,8 @@ static int modulation_set(int fd, uint8_t modulation)
|
||||
printf("LORA modulation\n");
|
||||
|
||||
modulation = SX127X_MODULATION_LORA;
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET, (unsigned long)&modulation);
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET,
|
||||
(unsigned long)&modulation);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("failed change modulation %d!\n", ret);
|
||||
@ -395,7 +396,8 @@ static int modulation_set(int fd, uint8_t modulation)
|
||||
printf("FSK modulation\n");
|
||||
|
||||
modulation = SX127X_MODULATION_FSK;
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET, (unsigned long)&modulation);
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET,
|
||||
(unsigned long)&modulation);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("failed change modulation %d!\n", ret);
|
||||
@ -409,7 +411,8 @@ static int modulation_set(int fd, uint8_t modulation)
|
||||
printf("OOK modulation\n");
|
||||
|
||||
modulation = SX127X_MODULATION_OOK;
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET, (unsigned long)&modulation);
|
||||
ret = ioctl(fd, SX127XIOC_MODULATIONSET,
|
||||
(unsigned long)&modulation);
|
||||
if (ret < 0)
|
||||
{
|
||||
printf("failed change modulation %d!\n", ret);
|
||||
@ -613,7 +616,8 @@ int main(int argc, FAR char *argv[])
|
||||
goto errout;
|
||||
}
|
||||
|
||||
printf("freq = %d max = %d min = %d free = %d\n", chanscan.freq,
|
||||
printf("freq = %d max = %d min = %d free = %d\n",
|
||||
chanscan.freq,
|
||||
chanscan.rssi_max, chanscan.rssi_min, chanscan.free);
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user