This is a class which contains function to interface with the MLX75320

Dependents:   MLX75320_API

Revision:
8:d49102c10940
Parent:
7:c47612b25c77
Child:
9:067f75510d67
--- a/LidarSpi.cpp	Tue Mar 29 13:34:25 2016 +0000
+++ b/LidarSpi.cpp	Tue Apr 05 08:16:10 2016 +0000
@@ -697,6 +697,7 @@
     uint8_t iserr;
     uint16_t err;
     uint32_t val = 0;
+    int nBytes=0;
     
     uint16_t * u16ptr;
     pc->printf("Buffer space required: %d\n\r", MAXTRCLEN);
@@ -866,11 +867,13 @@
         {
             //WTA: removed MLX_HDR_SZ 
             buf[a*(MLX_LONG1_DATA_SZ / 2) + b] = u16ptr[b];
+            nBytes++;
         }
         
     }
     trigger.write(0);
     device.format(8,1);
+    res=nBytes;
 
 END:
     device.format(8,1);
@@ -1530,6 +1533,8 @@
         //pc->printf("PORT SH2 Write error\n\r");
         return res;
     }*/
+    
+    
     return 0;
                
 }