mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Made PRDevice::Reset public for use in pinproctest and added a parameter to allow the disabled driver and switch rule structures to be written to the P-ROC.
This commit is contained in:
@@ -415,6 +415,10 @@ int main(int argc, const char **argv)
|
||||
|
||||
RunLoop(proc);
|
||||
|
||||
// Clean up P-ROC.
|
||||
printf("Disabling P-ROC drivers and switch rules...\n");
|
||||
PRReset(proc,true); // Reset the device structs and write them into the device.
|
||||
|
||||
// Destroy the P-ROC device handle:
|
||||
PRDelete(proc);
|
||||
proc = kPRHandleInvalid;
|
||||
|
||||
Reference in New Issue
Block a user