const for hitag2
This commit is contained in:
1 parent
282c0904a5
commit
47ea4d6566
2 files changed
+6
-6
No files matched your search
+3
-3
@@ -979,7 +979,7 @@ static bool hitag2_read_uid(uint8_t *rx, const size_t rxlen, uint8_t *tx, size_t
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EloadHitag(uint8_t *data, uint16_t len) {
|
void EloadHitag(const uint8_t *data, uint16_t len) {
|
||||||
memcpy(tag.sectors, data, sizeof(tag.sectors));
|
memcpy(tag.sectors, data, sizeof(tag.sectors));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1532,7 +1532,7 @@ void SimulateHitag2(bool ledcontrol) {
|
|||||||
// reply_ng(CMD_LF_HITAG_SIMULATE, (checked == -1) ? PM3_EOPABORTED : PM3_SUCCESS, (uint8_t *)tag.sectors, tag_size);
|
// reply_ng(CMD_LF_HITAG_SIMULATE, (checked == -1) ? PM3_EOPABORTED : PM3_SUCCESS, (uint8_t *)tag.sectors, tag_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReaderHitag(hitag_function htf, hitag_data *htd, bool ledcontrol) {
|
void ReaderHitag(hitag_function htf, const hitag_data *htd, bool ledcontrol) {
|
||||||
|
|
||||||
uint32_t command_start = 0, command_duration = 0;
|
uint32_t command_start = 0, command_duration = 0;
|
||||||
uint32_t response_start = 0, response_duration = 0;
|
uint32_t response_start = 0, response_duration = 0;
|
||||||
@@ -1928,7 +1928,7 @@ out:
|
|||||||
reply_mix(CMD_ACK, bSuccessful, 0, 0, 0, 0);
|
reply_mix(CMD_ACK, bSuccessful, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WriterHitag(hitag_function htf, hitag_data *htd, int page, bool ledcontrol) {
|
void WriterHitag(hitag_function htf, const hitag_data *htd, int page, bool ledcontrol) {
|
||||||
|
|
||||||
uint32_t command_start = 0;
|
uint32_t command_start = 0;
|
||||||
uint32_t command_duration = 0;
|
uint32_t command_duration = 0;
|
||||||
|
|||||||
+3
-3
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
void SniffHitag2(bool ledcontrol);
|
void SniffHitag2(bool ledcontrol);
|
||||||
void SimulateHitag2(bool ledcontrol);
|
void SimulateHitag2(bool ledcontrol);
|
||||||
void ReaderHitag(hitag_function htf, hitag_data *htd, bool ledcontrol);
|
void ReaderHitag(hitag_function htf, const hitag_data *htd, bool ledcontrol);
|
||||||
void WriterHitag(hitag_function htf, hitag_data *htd, int page, bool ledcontrol);
|
void WriterHitag(hitag_function htf, const hitag_data *htd, int page, bool ledcontrol);
|
||||||
void EloadHitag(uint8_t *data, uint16_t len);
|
void EloadHitag(const uint8_t *data, uint16_t len);
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user