From 94cd864dba9d9451e6f2892bdbcddbca8c3499d7 Mon Sep 17 00:00:00 2001 From: Ralph Lembcke Date: Tue, 10 Mar 2020 21:26:04 +0100 Subject: [PATCH] Fix some typos in the comments --- src/hw_ostc3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hw_ostc3.c b/src/hw_ostc3.c index 58e18ea..b2cd152 100644 --- a/src/hw_ostc3.c +++ b/src/hw_ostc3.c @@ -113,8 +113,8 @@ typedef struct hw_ostc3_firmware_t { unsigned int checksum; } hw_ostc3_firmware_t; -// This key is used both for the Ostc3 and its cousin, -// the Ostc Sport. +// This key is used both for the OSTC3 and its cousin, +// the OSTC Sport. // The Frog uses a similar protocol, and with another key. static const unsigned char ostc3_key[16] = { 0xF1, 0xE9, 0xB0, 0x30, @@ -317,7 +317,7 @@ hw_ostc3_transfer (hw_ostc3_device_t *device, } if (output) { - // Read the ouput data packet. + // Read the output data packet. status = hw_ostc3_read (device, progress, output, osize); if (status != DC_STATUS_SUCCESS) { ERROR (abstract->context, "Failed to receive the answer."); @@ -1231,7 +1231,7 @@ hw_ostc3_firmware_block_write (hw_ostc3_device_t *device, unsigned int addr, con { unsigned char buffer[3 + SZ_FIRMWARE_BLOCK]; - // We currenty only support writing max SZ_FIRMWARE_BLOCK sized blocks. + // We currently only support writing max SZ_FIRMWARE_BLOCK sized blocks. if (block_size > SZ_FIRMWARE_BLOCK) return DC_STATUS_INVALIDARGS; @@ -1599,7 +1599,7 @@ hw_ostc3_device_dump (dc_device_t *abstract, dc_buffer_t *buffer) unsigned int nbytes = 0; while (nbytes < SZ_MEMORY) { - // packet size. Can be almost arbetary size. + // packet size. Can be almost arbitrary size. unsigned int len = SZ_FIRMWARE_BLOCK; // Read a block