-/*
- * \brief
- * Initialize logs
- */
-static void logInit(struct rpi_state* state){
- int r;
- state->log_col=0;
- state->log_col_count=LOG_DEF_COL;
- for (r=0;r<LOG_ROWS;r++){
- state->logs[r]=malloc(state->log_col_count*sizeof(int));
- if (state->logs[r]==NULL){
- error=1;
- state->log_col_count=-1;
- return;
- }
- }
- state->doLogs=1;
-}
-
-
-