Skip to content

Commit

Permalink
fiz
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 17, 2023
1 parent 7193dbf commit b35a96d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/new_pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,11 +1167,10 @@ const char *ChannelType_GetTitle(int type) {
return "";
}
float CHANNEL_GetFinalValue(int channel) {
int iVal;
float dVal;

iVal = CHANNEL_Get(channel);
iVal /= ChannelType_GetDivider(CHANNEL_GetType(channel));
dVal = CHANNEL_Get(channel);
dVal /= ChannelType_GetDivider(CHANNEL_GetType(channel));

return dVal;
}
Expand Down

0 comments on commit b35a96d

Please sign in to comment.