Ver código fonte

Bugfix: ADC Channels lassen sich jetzt alle auslesen

Heinrich Blatt 8 meses atrás
pai
commit
7ee2948206
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      main_target.c

+ 3 - 3
main_target.c

@@ -95,7 +95,7 @@ void I2C_controller_INST_IRQHandler(void) {
     /*TRANSMIT data to ADC*/
     case DL_I2C_IIDX_CONTROLLER_TXFIFO_TRIGGER:
         if (gTxADCcount < gTxADClen) {
-            gTxPacket[gTxADCcount] = DL_I2C_fillControllerTXFIFO(I2C_controller_INST,
+            DL_I2C_fillControllerTXFIFO(I2C_controller_INST,
                                                     &gTxPacket[gTxADCcount],
                                                     (gTxADClen - gTxADCcount));
             gTxADCcount++;
@@ -169,13 +169,13 @@ int main(void)
             continue;
         }
         
-        /*for(uint8_t slot= 0; slot< NUM_SLOTS; slot++){
+        for(uint8_t slot= 0; slot< NUM_SLOTS; slot++){
             for(uint8_t channel= 0; channel< 2; channel++){
                 updateADCReading_multichannel(slot, channel);
             }
         }
         
         delay_cycles(DELAY_CYCLE);
-        */
+        
     }
 }