Skip to content

Commit

Permalink
bitfury: Disable dynamic osc6_bits when manually setting a specific v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
luke-jr committed Oct 26, 2013
1 parent 02eb892 commit 3abf787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions driver-bitfury.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,12 +873,14 @@ char *bitfury_set_device(struct cgpu_info * const proc, char * const option, cha

if (!strcasecmp(option, "osc6_bits"))
{
struct freq_stat * const c = &bitfury->chip_stat;
newval = bitfury->osc6_bits;
if (!_bitfury_set_device_parse_setting(&newval, setting, replybuf, BITFURY_MAX_OSC6_BITS))
return replybuf;

bitfury->osc6_bits = newval;
bitfury->force_reinit = true;
c->osc6_max = 0;

return NULL;
}
Expand All @@ -902,6 +904,7 @@ const char *bitfury_tui_handle_choice(struct cgpu_info *cgpu, int input)
{
case 'o': case 'O':
{
struct freq_stat * const c = &bitfury->chip_stat;
int val;
char *intvar;

Expand All @@ -916,6 +919,7 @@ const char *bitfury_tui_handle_choice(struct cgpu_info *cgpu, int input)

bitfury->osc6_bits = val;
bitfury->force_reinit = true;
c->osc6_max = 0;

return "Oscillator bits changing\n";
}
Expand Down

0 comments on commit 3abf787

Please sign in to comment.