|
|
@@ -115,11 +115,11 @@ static uint8_t construct_config_byte(ADC_Params *params) {
|
|
|
* I2C*/
|
|
|
|
|
|
static bool adc_configure(uint8_t slot_id, ADC_Params *params) {
|
|
|
- printf("Configuring for channel: %d\n", params->channel);
|
|
|
+ /*printf("Configuring for channel: %d\n", params->channel);
|
|
|
printf("Configuring for resolution: %d\n", params->resolution);
|
|
|
printf("Configuring for gain: %d\n", params->gain);
|
|
|
printf("Continuous or Single: %d\n", params->continuous);
|
|
|
-
|
|
|
+ */
|
|
|
uint8_t config_byte = construct_config_byte(params);
|
|
|
printf("Config Byte: 0x%02X\n", config_byte);
|
|
|
// Wait for I2C Bus to be Free**
|
|
|
@@ -127,7 +127,7 @@ static bool adc_configure(uint8_t slot_id, ADC_Params *params) {
|
|
|
DL_I2C_CONTROLLER_STATUS_BUSY_BUS)
|
|
|
;
|
|
|
if(config_byte == 0xFF){
|
|
|
- //printf("[ADC] Unable to send config bytes\n");
|
|
|
+ printf("[ADC] Unable to send config bytes\n");
|
|
|
return false;
|
|
|
}
|
|
|
// Prepare TX Buffer:
|