diff --git a/get_temp.sh b/get_temp.sh index d5352d9..504bc68 100644 --- a/get_temp.sh +++ b/get_temp.sh @@ -1,6 +1,6 @@ #!/bin/bash -response = `i2cget -y 1 0x18 0x05` +response = `i2cget -y 1 0x18 0x05 w` upper_byte = $(($response & 0x00FF)) -echo response -echo upper_byte \ No newline at end of file +echo $response +echo $upper_byte \ No newline at end of file