   uint32_t uBandwidth;
 
   if (! fDownlink)
-	{
-	if (kUplinkChannel < 64)
-		{
-		LMIC.freq = AU921_125kHz_UPFBASE +
-			    kUplinkChannel * AU921_125kHz_UPFSTEP;
-		uBandwidth = 125;
-		}
-	else
-		{
-		LMIC.freq = AU921_500kHz_UPFBASE +
-			    (kUplinkChannel - 64) * AU921_500kHz_UPFSTEP;
-		uBandwidth = 500;
-		}
-	}
+        {
+        if (kUplinkChannel < 64)
+                {
+                LMIC.freq = AU921_125kHz_UPFBASE +
+                            kUplinkChannel * AU921_125kHz_UPFSTEP;
+                uBandwidth = 125;
+                }
+        else
+                {
+                LMIC.freq = AU921_500kHz_UPFBASE +
+                            (kUplinkChannel - 64) * AU921_500kHz_UPFSTEP;
+                uBandwidth = 500;
+                }
+        }
   else
-	{
-	// downlink channel
-	LMIC.freq = AU921_500kHz_DNFBASE +
-		    kDownlinkChannel * AU921_500kHz_DNFSTEP;
-	uBandwidth = 500;
-	}
+        {
+        // downlink channel
+        LMIC.freq = AU921_500kHz_DNFBASE +
+                    kDownlinkChannel * AU921_500kHz_DNFSTEP;
+        uBandwidth = 500;
+        }
 
   // Use a suitable spreading factor
   if (uBandwidth < 500)

Module:  raw-feather.ino

Function:
	Slightly improved Raw test example, for Adafruit Feather M0 LoRa

Version:
	V0.7.0	Tue Jan 23 2018 10:25:50 chwon	Edit level 2

Copyright notice:
	This file copyright (C) 2017, 2018 by

		MCCI Corporation
		3520 Krums Corners Road
		Ithaca, NY  14850

	An unpublished work.  All rights reserved.

	This file is proprietary information, and may not be disclosed or
	copied without the prior permission of MCCI Corporation.

Author:
	Matthijs Kooijman  2015
	Terry Moore, MCCI Corporation	April 2017

Revision history:
   0.5.0  Sat Apr  1 2017 22:26:22  tmm
	Module created.

   0.7.0  Tue Jan 23 2018 10:25:50  chwon
	Add Catena 4551 platform support.

*/


};

void lmic_printf(const char *fmt, ...) {
        if (! Serial.dtr())
                return;

        char buf[256];
        va_list ap;

        va_start(ap, fmt);
        (void) vsnprintf(buf, sizeof(buf) - 1, fmt, ap);
        va_end(ap);

        // in case we overflowed:
        buf[sizeof(buf) - 1] = '\0';
        if (Serial.dtr()) Serial.print(buf);
}

osjob_t txjob;
