summaryrefslogtreecommitdiff
path: root/backend/pieusb_scancmd.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-02-16 18:24:19 +0100
commit351b7328520c16730ceb46e5acae16038c42185e (patch)
treefae21fd5c94f3c3ed0202a95c9ada705482e647b /backend/pieusb_scancmd.c
parentad38bc6ecb80ddeb562841b33258dd53659b1da6 (diff)
New upstream version 1.0.32upstream/1.0.32
Diffstat (limited to 'backend/pieusb_scancmd.c')
-rw-r--r--backend/pieusb_scancmd.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/backend/pieusb_scancmd.c b/backend/pieusb_scancmd.c
index 672716f..583c4ac 100644
--- a/backend/pieusb_scancmd.c
+++ b/backend/pieusb_scancmd.c
@@ -17,9 +17,7 @@
General Public License for more details.
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., 59 Temple Place - Suite 330, Boston,
- MA 02111-1307, USA.
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
As a special exception, the authors of SANE give permission for
additional uses of the libraries contained in this release of SANE.
@@ -47,7 +45,7 @@
* Pieusb scanner commands
*
* Each scanner command has its own function.
- * See the sort description preceeding each function.
+ * See the sort description preceding each function.
*
* ========================================================================= */
@@ -245,7 +243,7 @@ sanei_pieusb_cmd_slide(SANE_Int device_number, slide_action action, struct Pieus
* @param device_number Device number
* @param sense Sense data
* @param status Command result status
- * @see struc Pieusb_Sense
+ * @see struct Pieusb_Sense
*/
void
sanei_pieusb_cmd_get_sense(SANE_Int device_number, struct Pieusb_Sense* sense, struct Pieusb_Command_Status *status, PIEUSB_Status *ret)
@@ -269,7 +267,7 @@ sanei_pieusb_cmd_get_sense(SANE_Int device_number, struct Pieusb_Sense* sense, s
return;
}
- /* Decode data recieved */
+ /* Decode data received */
sense->errorCode = _get_byte (data, 0);
sense->segment = _get_byte (data, 1);
sense->senseKey = _get_byte (data, 2);
@@ -622,7 +620,7 @@ sanei_pieusb_cmd_get_parameters(SANE_Int device_number, struct Pieusb_Scan_Param
* e: d7 00 available lines 215
* 10:00 00
*/
- /* Decode data recieved */
+ /* Decode data received */
parameters->width = _get_short(data, 0);
parameters->lines = _get_short(data, 2);
parameters->bytes = _get_short(data, 4);
@@ -675,7 +673,7 @@ sanei_pieusb_cmd_inquiry(SANE_Int device_number, struct Pieusb_Scanner_Propertie
return;
}
- /* Decode data recieved */
+ /* Decode data received */
inq->deviceType = _get_byte(data, 0);
inq->additionalLength = _get_byte(data, 4);
_copy_bytes((SANE_Byte*)(inq->vendor), data+8, 8); /* Note: not 0-terminated */
@@ -859,7 +857,7 @@ sanei_pieusb_cmd_get_mode(SANE_Int device_number, struct Pieusb_Mode* mode, stru
return;
}
- /* Decode data recieved */
+ /* Decode data received */
mode->resolution = _get_short (data, 2);
mode->passes = _get_byte (data, 4);
mode->colorDepth = _get_byte (data, 5);
@@ -1185,7 +1183,7 @@ sanei_pieusb_cmd_read_state(SANE_Int device_number, struct Pieusb_Scanner_State*
data[5] = 1;
status->pieusb_status = PIEUSB_STATUS_GOOD;
}
- /* Decode data recieved */
+ /* Decode data received */
state->buttonPushed = _get_byte(data, 0);
state->warmingUp = _get_byte(data, 5);
state->scanning = _get_byte(data, 6);