mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-07-15 23:14:36 +02:00
Change libusb-0.1 -> libusb-1.0 to be able to build on Solaris
This commit is contained in:
parent
9eee035ff0
commit
8ccd2b1f47
5 changed files with 112 additions and 72 deletions
37
README.md
37
README.md
|
@ -1,3 +1,38 @@
|
|||
PCSensor / TEMPer2 driver for Linux/Solaris
|
||||
====
|
||||
|
||||

|
||||
|
||||
# Build
|
||||
## Solaris 11
|
||||
```
|
||||
# pkg install gcc libusb-1
|
||||
$ make
|
||||
...
|
||||
```
|
||||
|
||||
## RHEL
|
||||
```
|
||||
# yum install gcc libusb1-devel
|
||||
$ make
|
||||
...
|
||||
```
|
||||
|
||||
# Usage
|
||||
```
|
||||
$ sudo ./pcsensor
|
||||
2017/08/30 17:21:35
|
||||
Temperature (internal) 96.58F 35.88C
|
||||
Temperature (external) 214.60F 101.45C
|
||||
```
|
||||
|
||||
libusb_detach_kernel_driver does not seem to work on Solaris. Thus, it looks necessary to unload hid driver manually.
|
||||
Are there any better solutions? (See pcsensor.sh)
|
||||
|
||||
|
||||
Original document below
|
||||
====
|
||||
|
||||
pcsensor
|
||||
========
|
||||
|
||||
|
@ -35,4 +70,4 @@ as well as the external sensor.
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue