From 1c6e23b1290b5a817673563425a4e1d359e6d948 Mon Sep 17 00:00:00 2001 From: The-White-Fox Date: Tue, 10 Nov 2020 14:50:50 +0100 Subject: [PATCH] Fix mandarin chinese comments Fix some nice but mandarin chinese comments and replaced it with its google translation. Should be buildable for now (cause some unexplicable build errors in first try). --- Firmware/Chameleon-Mini/Application/MifareClassic.c | 8 ++++---- Firmware/Chameleon-Mini/Codec/Codec.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Firmware/Chameleon-Mini/Application/MifareClassic.c b/Firmware/Chameleon-Mini/Application/MifareClassic.c index 0b45bfd..c979cc5 100644 --- a/Firmware/Chameleon-Mini/Application/MifareClassic.c +++ b/Firmware/Chameleon-Mini/Application/MifareClassic.c @@ -5,8 +5,8 @@ * Author: skuser * * ChangeLog - * 2019-09-22 willok 加入了UID模式开关,加入了SAK模式开关 - * 2019-10-05 Willok 将侦测卡功能整合进来,以减少程序大小 + * 2019-09-22 willok Added UID mode switch and SAK mode switch + * 2019-10-05 Willok Integrate detection card function to reduce program size * */ @@ -82,7 +82,7 @@ #define CMD_TRANSFER 0xB0 #define CMD_TRANSFER_FRAME_SIZE 2 /* Bytes without CRCA */ -// 白卡相关的指令 +// White card related instructions #define CMD_CHINESE_UNLOCK 0x40 #define CMD_CHINESE_WIPE 0x41 #define CMD_CHINESE_UNLOCK_RW 0x43 @@ -454,7 +454,7 @@ void DetectionInit(void) { // Download log bool RfLogMemLoadBlock(void *Buffer, uint32_t BlockAddress, uint16_t ByteCount) { - // 位置超出尾部了,结束 + // The position is beyond the end if (BlockAddress < (DetectionLogPtr - FRAM_DETECTION_START_ADDR)) { MemoryReadBlock(Buffer, BlockAddress + FRAM_DETECTION_START_ADDR, ByteCount); if (0 == BlockAddress) diff --git a/Firmware/Chameleon-Mini/Codec/Codec.c b/Firmware/Chameleon-Mini/Codec/Codec.c index 703ed17..aaf143c 100644 --- a/Firmware/Chameleon-Mini/Codec/Codec.c +++ b/Firmware/Chameleon-Mini/Codec/Codec.c @@ -11,7 +11,7 @@ uint16_t Reader_FWT = ISO14443A_RX_PENDING_TIMEOUT; -// 这个是从开启到准备好的时间间隔,之前不能发送数据 +// This is the time interval from start to ready, data cannot be sent before #define READER_FIELD_MINIMUM_WAITING_TIME 70 // ms static uint16_t ReaderFieldStartTimestamp = 0;