mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
mc: watchdog set: Fix intr setting
The previous commit contained a bug due to which the `intr` option value was never passed to the BMC.
This commit is contained in:
parent
6c00d448d5
commit
e49a20eece
@ -890,7 +890,7 @@ ipmi_mc_set_watchdog(struct ipmi_intf * intf, int argc, char *argv[])
|
|||||||
msg_data[0] |= use & IPMI_WDT_USE_MASK;
|
msg_data[0] |= use & IPMI_WDT_USE_MASK;
|
||||||
|
|
||||||
msg_data[1] = (intr & IPMI_WDT_INTR_MASK) << IPMI_WDT_INTR_SHIFT;
|
msg_data[1] = (intr & IPMI_WDT_INTR_MASK) << IPMI_WDT_INTR_SHIFT;
|
||||||
msg_data[1] = action & IPMI_WDT_ACTION_MASK;
|
msg_data[1] |= action & IPMI_WDT_ACTION_MASK;
|
||||||
|
|
||||||
msg_data[2] = pretimeout;
|
msg_data[2] = pretimeout;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user