fix inconsistent indentation

parent 8a9f8dd6
......@@ -32,12 +32,10 @@ static struct oau_context oau_contexts[OAU_MAX_HANDLES];
static struct {
int r1, r2;
} oau_relay_mapping[OAU_NUM_CHANNELS] = {
{ 0, 1 },
{ 2, 3 },
{ 4, 5 },
{ 6, 7 }
{ 0, 1 },
{ 2, 3 },
{ 4, 5 },
{ 6, 7 }
};
int oau_att_open(char *serial)
......@@ -51,10 +49,9 @@ int oau_att_open(char *serial)
int fd = oau_current_handle;
oau_current_handle++;
if ((ctx->ftdi = ftdi_new()) == 0)
{
return -ENOMEM;
}
if ((ctx->ftdi = ftdi_new()) == 0) {
return -ENOMEM;
}
if (serial) {
ret = ftdi_usb_open_desc(ctx->ftdi,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment