using template to pass aditional argument

ahh found a mistake, this two lines must be written in one line

template <int DIR>
void IN_enc_fun(){

Thank you for reading this anyway. Sorry for bothering you guys.