Magn Sens: typo in comment
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 8 Feb 2018 17:01:39 +0000 (18:01 +0100)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 8 Feb 2018 17:01:39 +0000 (18:01 +0100)
sensors/MagneticFieldSensor/MagnetSensor.c

index d6b8f30f1d7935271f37f2afa50cd3519706f109..690d0c333bee94c344bfba0b0ba58a0e03783a8e 100644 (file)
@@ -13,7 +13,7 @@ uint8_t InitMagSensor(uint8_t Addr, uint16_t* Tref, float* SensX, float* SensY,
     char s[30];
    
     // Read temperature compensation 
-    txBuffer[0] = 0x50; //write in MagSensor
+    txBuffer[0] = 0x50; //read in MagSensor
     txBuffer[1] = 0x04; //Register 0x1 (shiftet to left by 2 Bits)
     twi_writeTo(Addr, txBuffer, 2,1, true);
     twi_readFrom(Addr, &ReadReg, 3, true);