drivers: usb: nrf5: Fix ISO IN/OUT SOF handling

For ISOOUT transaction, check if the buffer is empty before starting
the DMA and for ISOIN case check if the buffer is available to start
the DMA for IN transaction. This handling was swapped. So, handle it
accordingly.

Signed-off-by: Sundar Subramaniyan <sundar.subramaniyan@gmail.com>
diff --git a/drivers/usb/device/usb_dc_nrf5.c b/drivers/usb/device/usb_dc_nrf5.c
index bcb1d21..5967e70 100644
--- a/drivers/usb/device/usb_dc_nrf5.c
+++ b/drivers/usb/device/usb_dc_nrf5.c
@@ -1422,11 +1422,8 @@
 			 * will transfer the OUT data anyway if DMA is set up.
 			 */
 
-			/**
-			 * Have anything in the ISO OUT buffer to write to
-			 * USB bus?
-			 */
-			if (ep_ctx->buf.len) {
+			/** Is buffer available? */
+			if (!ep_ctx->buf.len) {
 				u32_t maxcnt;
 
 				maxcnt = nrf_usbd_episoout_size_get(addr);
@@ -1439,8 +1436,11 @@
 				start_epout_task(addr);
 			}
 		} else {
-			/** Is buffer available? */
-			if (!ep_ctx->buf.len) {
+			/**
+			 * Have anything in the ISO IN buffer to write to
+			 * USB bus?
+			 */
+			if (ep_ctx->buf.len) {
 				nrf_usbd_ep_easydma_set(addr,
 							(u32_t)ep_ctx->buf.data,
 							ep_ctx->cfg.max_sz);