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