Properly use enum.
Change-Id: I0edef6053fac388db38a22fe7557623fa93ec705 Co-authored-by: Jan Matyas <50193733+JanMatCodasip@users.noreply.github.com>
This commit is contained in:
parent
e191bccc73
commit
ecd736dc53
|
@ -1510,7 +1510,7 @@ typedef enum {
|
|||
static int set_group(struct target *target, bool *supported, unsigned group, grouptype_t grouptype)
|
||||
{
|
||||
uint32_t write = set_field(DM_DMCS2_HGWRITE, DM_DMCS2_GROUP, group);
|
||||
write = set_field(write, DM_DMCS2_GROUPTYPE, 1);
|
||||
write = set_field(write, DM_DMCS2_GROUPTYPE, (grouptype == HALTGROUP) ? 1 : 0);
|
||||
if (dmi_write(target, DM_DMCS2, write) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
uint32_t read;
|
||||
|
|
Loading…
Reference in New Issue