Changeset 5466
- Timestamp:
- 11/30/08 11:29:22 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5465 r5466 1709 1709 ####################### 1710 1710 1711 sub swap_bytes1712 {1713 return (($_[0] & 0xff00) >> 8) + (($_[0] & 0x00ff) << 8)1714 }1715 1716 1711 # $_[0] is the sought value 1717 1712 # @_[1..] is the list to seek in … … 2379 2374 # and only start using word reads when there is a good chance that 2380 2375 # the detection will succeed. 2381 # Note: some devices use the wrong endiannes; use swap_bytes to correct for 2382 # this. 2376 # Note: some devices use the wrong endianness. 2383 2377 sub i2c_smbus_read_word_data 2384 2378 {
