dey-examples: tamper: use string intead of magic number for acking the event
This will only work if the kernel has the latest driver for MCA tamper. Signed-off-by: Sebastian Pastor <sebastian.pastor@digi.com>
This commit is contained in:
parent
a8f0024403
commit
f5cdab182c
|
|
@ -97,7 +97,7 @@ static void tamper_event_ack(mca_tamper_t *tdata)
|
|||
}
|
||||
|
||||
/* Finally, acknowledge the event */
|
||||
ret = write_sysfs_int("tamper_events", tamper_sysfs_dir, 2);
|
||||
ret = write_sysfs_string("tamper_events", tamper_sysfs_dir, "ack");
|
||||
if (ret < 0) {
|
||||
fprintf(stdout, "Failed to acknowledge tamper%d event\n",
|
||||
tdata->iface);
|
||||
|
|
|
|||
Loading…
Reference in New Issue