#define PRUM_SOUC 6183
static char doPrint = 1;
-static char error = 0;
+
/*
* \brief
sem_post(&state->thd_par_sem);
}
-/*
- * \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;
-}
-
-
-
/**
* \brief
* SetLog
if (s.index_ok) printf("index ok\n");
if (s.commutate) printf("commutation in progress\n");
if (s.doLogs) printf("logujeme\n");
- if (error) printf("error pri maloc logs!! \n");
+ if (s.error) printf("error pri maloc logs!! \n");
}