projects
/
librfid
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove autogenerated file
[librfid]
/
src
/
rfid_scan.c
diff --git
a/src/rfid_scan.c
b/src/rfid_scan.c
index
1abb4df
..
477265a
100644
(file)
--- a/
src/rfid_scan.c
+++ b/
src/rfid_scan.c
@@
-16,7
+16,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA
*/
#include <librfid/rfid.h>
*/
#include <librfid/rfid.h>
@@
-43,7
+43,7
@@
rfid_layer2_scan1(struct rfid_reader_handle *rh, int l2)
return NULL;
}
return NULL;
}
-st
atic st
ruct rfid_layer2_handle *
+struct rfid_layer2_handle *
rfid_layer2_scan(struct rfid_reader_handle *rh)
{
struct rfid_layer2_handle *l2h;
rfid_layer2_scan(struct rfid_reader_handle *rh)
{
struct rfid_layer2_handle *l2h;
@@
-51,6
+51,7
@@
rfid_layer2_scan(struct rfid_reader_handle *rh)
#define RFID_LAYER2_MAX 16
for (i = 0; i < RFID_LAYER2_MAX; i++) {
#define RFID_LAYER2_MAX 16
for (i = 0; i < RFID_LAYER2_MAX; i++) {
+ DEBUGP("testing l2 %u\n", i);
l2h = rfid_layer2_scan1(rh, i);
if (l2h)
return l2h;
l2h = rfid_layer2_scan1(rh, i);
if (l2h)
return l2h;
@@
-79,7
+80,7
@@
rfid_protocol_scan1(struct rfid_layer2_handle *l2h, int proto)
return NULL;
}
return NULL;
}
-st
atic st
ruct rfid_protocol_handle *
+struct rfid_protocol_handle *
rfid_protocol_scan(struct rfid_layer2_handle *l2h)
{
struct rfid_protocol_handle *ph;
rfid_protocol_scan(struct rfid_layer2_handle *l2h)
{
struct rfid_protocol_handle *ph;
@@
-87,6
+88,7
@@
rfid_protocol_scan(struct rfid_layer2_handle *l2h)
#define RFID_PROTOCOL_MAX 16
for (i = 0; i < RFID_PROTOCOL_MAX; i++) {
#define RFID_PROTOCOL_MAX 16
for (i = 0; i < RFID_PROTOCOL_MAX; i++) {
+ DEBUGP("testing proto %u\n", i);
ph = rfid_protocol_scan1(l2h, i);
if (ph)
return ph;
ph = rfid_protocol_scan1(l2h, i);
if (ph)
return ph;
@@
-105,9
+107,9
@@
int rfid_scan(struct rfid_reader_handle *rh,
if (!*l2h)
return 0;
if (!*l2h)
return 0;
- *ph = rfid_protocol_scan(l2h);
+ *ph = rfid_protocol_scan(
*
l2h);
if (!*ph)
return 2;
if (!*ph)
return 2;
-
+
return 3;
}
return 3;
}