nRF24L01 driver

Dependents:   Nucleo_IOT1 wireless

Files at this revision

API Documentation at this revision

Comitter:
ianmcc
Date:
Sat Feb 01 11:07:08 2014 +0000
Parent:
0:7313e63394c3
Child:
2:75a1c2139f17
Commit message:
Minor bug fix in nRF24L01P, complete "else if"

Changed in this revision

nRF24L01P.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/nRF24L01P.cpp	Sun Aug 11 11:58:05 2013 +0000
+++ b/nRF24L01P.cpp	Sat Feb 01 11:07:08 2014 +0000
@@ -125,7 +125,7 @@
    char p = 0;
    if (Power == 0)
       p = 0x03;
-   if (Power == -6)
+   else if (Power == -6)
       p = 0x02;
    else if (Power == -12)
       p = 0x01;