mirror of
https://github.com/erjiang/usbscale.git
synced 2025-06-28 09:00:58 -06:00
Added gplv3 note to usbscale.c
This commit is contained in:
parent
81355c8c18
commit
8c039b082c
22
usbscale.c
22
usbscale.c
@ -8,6 +8,23 @@
|
|||||||
// There are no options. **usbscale** will try to read data from the first
|
// There are no options. **usbscale** will try to read data from the first
|
||||||
// scale it finds when enumerating your USB devices.
|
// scale it finds when enumerating your USB devices.
|
||||||
//
|
//
|
||||||
|
/*
|
||||||
|
usbscale
|
||||||
|
Copyright (C) 2011 Eric Jiang
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -30,11 +47,6 @@
|
|||||||
//
|
//
|
||||||
#include "scales.h"
|
#include "scales.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* These constants are from libhid/include/constants.h
|
|
||||||
* and usage based on libhid/src/hid_exchange.c
|
|
||||||
* also vvvoutput.txt
|
|
||||||
*/
|
|
||||||
#define WEIGH_REPORT_SIZE 0x06
|
#define WEIGH_REPORT_SIZE 0x06
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user