# HG changeset patch # User andrewm # Date 1464567674 -3600 # Node ID 3a28a4eb948d999b7dfada6004fd66488afac615 # Parent 2c4ddf4277d15ee38b3dc34eba6de6b4b8cd6457 Minor cleanup -- digital status shouldn't be dependent on analog status diff -r 2c4ddf4277d1 -r 3a28a4eb948d core/PRU.cpp --- a/core/PRU.cpp Mon May 30 01:07:22 2016 +0100 +++ b/core/PRU.cpp Mon May 30 01:21:14 2016 +0100 @@ -397,11 +397,11 @@ if(analog_enabled) { for(int i = 0; i < PRU_MEM_DAC_LENGTH / 2; i++) pru_buffer_spi_dac[i] = 0; - if(digital_enabled){ - for(int i = 0; i < PRU_MEM_DIGITAL_OFFSET*2; i++) - pru_buffer_digital[i] = 0x0000ffff; // set to all inputs, to avoid unexpected spikes - } } + if(digital_enabled){ + for(int i = 0; i < PRU_MEM_DIGITAL_OFFSET*2; i++) + pru_buffer_digital[i] = 0x0000ffff; // set to all inputs, to avoid unexpected spikes + } for(int i = 0; i < PRU_MEM_MCASP_LENGTH / 2; i++) pru_buffer_audio_dac[i] = 0;