Fix to have load pin working with SPI1.

Dependencies:   mbed

Fork of Max7221 by Dwayne Dilbeck

Revision:
5:1f3dbf38d027
Parent:
3:5abc4047af8d
Child:
6:191569a26f50
--- a/Max7221.cpp	Wed Aug 07 03:07:01 2013 +0000
+++ b/Max7221.cpp	Thu Nov 19 23:27:53 2015 +0000
@@ -33,7 +33,7 @@
    ///Determine which bus we are connecting the device to based on the MSOI pin name
    switch (msoi) {
      ///If using SPI bus #1
-     case p5: maxInUseSPI1++; 
+     case PTC6: maxInUseSPI1++; 
               ///Set this insctance to pointers to the correct static pointers
               this->id=maxInUseSPI1;
               this->maxInUse=&maxInUseSPI1;
@@ -45,10 +45,10 @@
                 ///TODO: Check that load pin is the same for all SP2 
               }
               this->max72_spi=spi1;
-              this->load = load2;
+              this->load = load1;
               break;
      ///If using SPI bus #2
-     case p11: maxInUseSPI2++;  
+     case PTD7: maxInUseSPI2++;  
               ///Set this insctance to pointers to the correct static pointers
               this->id=maxInUseSPI2;
               this->maxInUse=&maxInUseSPI2;