Fixed typos in cli output and source code comments

This commit is contained in:
Martin Hauke
2021-01-01 22:11:48 +01:00
committed by Andreas Eversberg
parent 97636aac1e
commit a07764f0d9
79 changed files with 192 additions and 192 deletions

View File

@@ -84,7 +84,7 @@ void print_help(const char *arg0)
printf(" the default values are used. Values are always overwritten with card\n");
printf(" data, if defined.\n");
printf(" -F --futln <phone number>\n");
printf(" Give 7 digits subsriber ID (default = '%s')\n", FUTLN_DEFAULT);
printf(" Give 7 digits subscriber ID (default = '%s')\n", FUTLN_DEFAULT);
printf(" --sicherung <security code>\n");
printf(" Card's security code for simple authentication (default = '%s')\n", SICHERUNG_DEFAULT);
printf(" --kartenkennung <card ID>\n");
@@ -246,7 +246,7 @@ int main_loop(serial_t *serial, int sniffer)
*/
if (!work) {
cts = serial_cts(serial);
/* initally AND when CTS becomes 1 (pulled to low by reset line) */
/* initially AND when CTS becomes 1 (pulled to low by reset line) */
if (last_cts != cts) {
if (sniffer == 1)
sniffer_reset(&sim_sniffer);

View File

@@ -56,7 +56,7 @@ static void my_ultostr(char *nptr, uint32_t value, int zeros)
digits++;
}
/* minium digits to fill up with '0' */
/* minimum digits to fill up with '0' */
if (digits < zeros)
digits = zeros;
@@ -1044,7 +1044,7 @@ static void rx_sdu(sim_sim_t *sim, uint8_t *data, int length)
}
/* unsupported message */
PDEBUG(DSIM7, DEBUG_NOTICE, "CLA 0x%02x INS 0x%02x uknown\n", cla, ins);
PDEBUG(DSIM7, DEBUG_NOTICE, "CLA 0x%02x INS 0x%02x unknown\n", cla, ins);
data = alloc_msg(sim, 0);
tx_sdu(sim, CCRC_ERROR, data, 0);
}
@@ -1222,7 +1222,7 @@ static int rx_char(sim_sim_t *sim, uint8_t c)
/* create layer 2 message for layer 1 */
static void tx_block(sim_sim_t *sim, enum l2_cmd cmd, uint8_t __attribute__((unused)) *data, int length)
{
PDEBUG(DSIM2, DEBUG_INFO, "TX resonse\n");
PDEBUG(DSIM2, DEBUG_INFO, "TX response\n");
/* header */
sim->block_address = (sim->addr_dst << 4) | sim->addr_src;
@@ -1355,7 +1355,7 @@ void sim_reset(sim_sim_t *sim, int reset)
int i;
char pin[8];
PDEBUG(DSIM1, DEBUG_INFO, "Reset singnal %s\n", (reset) ? "on (low)" : "off (high)");
PDEBUG(DSIM1, DEBUG_INFO, "Reset signal %s\n", (reset) ? "on (low)" : "off (high)");
memset(sim, 0, sizeof(*sim));
if (reset)

View File

@@ -84,7 +84,7 @@ void reset_init(uint8_t pin)
out = portOutputRegister(port);
reset_in = portInputRegister(port);
*mode &= ~reset_bit; /* intput */
*mode &= ~reset_bit; /* input */
*out |= reset_bit; /* pullup */
}
#endif
@@ -178,7 +178,7 @@ void setup() {
pinMode(STATUS_LED, OUTPUT);
#endif
/* intial eeprom init */
/* initial eeprom init */
byte = eeprom_read(EEPROM_MAGIC + 0);
ver = eeprom_read(EEPROM_MAGIC + 1);
if (byte != 'C' || ver != '0' + EEPROM_VERSION)
@@ -261,7 +261,7 @@ tx_again:
/* perform RX, when low (start bit) */
if (!(*serial_in & serial_bit)) {
c = serial_rx();
/* if block was completly received, go to tx_again */
/* if block was completely received, go to tx_again */
if (sim_rx(&sim, c) < 0)
goto tx_again;
/* start counting timeout condition */

View File

@@ -133,7 +133,7 @@ static void rx_icl_sdu(uint8_t *data, int length)
case CLA_AUTO:
switch (ins_aprc) {
case AUT_1:
PDEBUG(DSIM7, DEBUG_INFO, " -> AUTO-1 (Autorization)\n");
PDEBUG(DSIM7, DEBUG_INFO, " -> AUTO-1 (Authorization)\n");
break;
}
break;