Commit 31d5b9d1 authored by Joshua Supra's avatar Joshua Supra
Browse files

.

parent 9b785d70
......@@ -235,16 +235,16 @@ int GetIOCardRegister(IOCardStruct *IOCard)
case ADAPTER: if (IOCard[i-1].TypeID == DIFF_ADC) {
IOCard[i].Register_value = getDADCRawvalue((i-1)/2);
} else if (IOCard[i-1].TypeID == THERMO) {
IOCard[i].Register_value = getThermoRawvalue(((i-1)/2+16));
IOCard[i].Register_value = getThermoRawvalue(((i-1)/2));
} else if (IOCard[i-1].TypeID == PT100){
IOCard[i].Register_value = getPT100RawValue(((i-1)/4+16));
IOCard[i].Register_value = getPT100RawValue(((i-1)/4));
} else if (IOCard[i+1].TypeID == PT100){
IOCard[i].Register_value = getPT100RawValue(((i+1)/4+16));
IOCard[i].Register_value = getPT100RawValue(((i+1)/4));
} break;
case THERMO: IOCard[i].Register_value = getThermoRawvalue(((i)/2+16));break;
case THERMO: IOCard[i].Register_value = getThermoRawvalue(((i)/2));break;
case PT100: IOCard[i].Register_value = getPT100RawValue(((i)/4+16));break;
case PT100: IOCard[i].Register_value = getPT100RawValue(((i)/4));break;
}
}else {
IOCard[i].Register_value = 0;
......
......@@ -42,7 +42,7 @@ void setIOMuxCfg(char channel, unsigned int config) {
*
* @param channel - Selected IOchannel
*
* @return Ćonfig of the selected IO channel
* @return config of the selected IO channel
*
*
*******************************************************************************/
......
Supports Markdown
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