added debug
This commit is contained in:
@@ -22,7 +22,6 @@
|
|||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -41,6 +40,8 @@
|
|||||||
#include "abort.h"
|
#include "abort.h"
|
||||||
#include "bacerror.h"
|
#include "bacerror.h"
|
||||||
|
|
||||||
|
// Example handlers of services
|
||||||
|
|
||||||
// Defined in config.h
|
// Defined in config.h
|
||||||
#ifdef BACDL_ETHERNET
|
#ifdef BACDL_ETHERNET
|
||||||
#include "ethernet.h"
|
#include "ethernet.h"
|
||||||
@@ -187,8 +188,11 @@ void IAmHandler(
|
|||||||
&max_apdu,
|
&max_apdu,
|
||||||
&segmentation,
|
&segmentation,
|
||||||
&vendor_id);
|
&vendor_id);
|
||||||
|
fprintf(stderr,"Received I-Am Request");
|
||||||
if (len != -1)
|
if (len != -1)
|
||||||
fprintf(stderr,"Received I-Am Request from %u!\n",device_id);
|
fprintf(stderr," from %u!\n",device_id);
|
||||||
|
else
|
||||||
|
fprintf(stderr,"!\n");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user