Return an error for the OSTC4 memory dump

The OSTC4 does not support downloading memory dumps.
This commit is contained in:
Michael Keller 2023-07-06 23:16:12 +02:00 committed by Jef Driesen
parent 3a68af418e
commit 0afd62d7af

View File

@ -1715,6 +1715,10 @@ hw_ostc3_device_dump (dc_device_t *abstract, dc_buffer_t *buffer)
return rc;
}
if (device->hardware == OSTC4) {
return DC_STATUS_UNSUPPORTED;
}
// Emit a device info event.
dc_event_devinfo_t devinfo;
devinfo.firmware = device->firmware;