tstana / cubes-fw

Firmware running on the CUBES SmartFusion2 Cortex-M3 core
2 stars 1 forks source link

HVPS: Remove or uncomment dead code #16

Closed tstana closed 4 years ago

tstana commented 5 years ago

The HVPS code contains some lines of dead code, e.g.:

146:    //processData(rx_buff); /* Process data for certain commands */

and (lines 164-178):

/*  if(cntr==1){
         Command for getting current output
        strcpy(command, "HGC");
        getarray(send, command);
        MSS_UART_polled_tx(&g_mss_uart0, send, strlen(send));
        memset(send, '\0', sizeof(send));
    }
    if(cntr==2){
         Command for getting Temperature output
        strcpy(command, "HGT");
        getarray(send, command);
        MSS_UART_polled_tx(&g_mss_uart0, send, strlen(send));
        memset(send, '\0', sizeof(send));
    }
    cntr=(cntr+1)%3;*/

Please decide what to do with these: keep or remove.