Commit 6fdc64c6 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

#36, minor improvement in IGL krnl


Former-commit-id: 87230798
parent 8c9b5987
......@@ -57,17 +57,11 @@ void Krnl_IGL_Arbiter(/*unsigned char DockConst_num_of_genes*/
GG_valid = read_pipe(chan_GA2IGL_GG_active, &GG_active);
}
active = (Off_valid == PIPE_STATUS_SUCCESS)? 0x00 : 0x01;
// Send "mode" to Conform
const char mode_Off = 0x00;
const char mode_IC = 'I';
const char mode_GG = 'G';
char mode_tmp = (Off_valid == PIPE_STATUS_SUCCESS)? mode_Off :
(IC_valid == PIPE_STATUS_SUCCESS)? mode_IC : mode_GG;
active = (Off_valid == PIPE_STATUS_SUCCESS)? 0x00 :
(IC_valid == PIPE_STATUS_SUCCESS)? 'I' : 'G';
write_pipe_block(chan_IGL2Conform_actmode, &mode_tmp);
write_pipe_block(chan_IGL2Conform_actmode, &active);
//printf("IGL Simplif sent!\n");
} // End of while (active)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment