From a95700799d132cb385220b94b911b494c5d67bcb Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 16 Oct 2020 18:15:05 +0200 Subject: [PATCH] install the callback function --- src/xspice/icm/xtradev/pswitch/cfunc.mod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xspice/icm/xtradev/pswitch/cfunc.mod b/src/xspice/icm/xtradev/pswitch/cfunc.mod index 07bc1befa..50b9e4665 100644 --- a/src/xspice/icm/xtradev/pswitch/cfunc.mod +++ b/src/xspice/icm/xtradev/pswitch/cfunc.mod @@ -174,6 +174,9 @@ void cm_pswitch(ARGS) /* structure holding parms, } if(INIT == 1) { /* first time through, allocate memory, set static parameters */ + + CALLBACK = cm_pswitch_callback; + /*** allocate static storage for *loc ***/ STATIC_VAR (locdata) = calloc (1 , sizeof ( Local_Data_t )); loc = STATIC_VAR (locdata);