 
     // Wait atleast 40ns (P5)
     delayMicroseconds(1);
-    
-    if (isread) {
+
+    if (isread)
+    {
       // Write 8 payload bits to RN2483
-      for (int n = 0; n < 8; n++) {
+      for (int n = 0; n < 8; n++)
+      {
         //Lower PGC and write bit to PGD
         digitalWrite(PGC, LOW);
         digitalWrite(PGD, bitRead(payload, n));
         delayMicroseconds(1);
-        
+
         //Raise PGC to send bit
         digitalWrite(PGC, HIGH);
         delayMicroseconds(1);

}

// Enter low-voltage program/verify mode
void enterLVP() {
  SerialUSB.write("Entering low-voltage program/verify mode\r\n");
  
  // Pull all programming pins Low
  digitalWrite(MCLR, LOW);
  digitalWrite(PGD, LOW);
  digitalWrite(PGC, LOW);
  
  // Wait atleast 100ns (P13)
  delayMicroseconds(1);

  // Set MCLR High then Low 
  digitalWrite(MCLR, HIGH);
  delayMicroseconds(1);
  digitalWrite(MCLR, LOW);


  // Set MCLR High
  digitalWrite(MCLR, HIGH);

  // Wait atleast 400us
  delayMicroseconds(450);
}

// Exit low-voltage program/verify mode
void exitLVP()
{
  SerialUSB.write("Exiting low-voltage program/verify mode\r\n");
  delayMicroseconds(1);
  digitalWrite(MCLR, LOW);
