From 67cbf1e89916e18188cc3ed9b8d2154cf2c19a3c Mon Sep 17 00:00:00 2001 From: "barraux.a" Date: Fri, 14 Oct 2022 23:57:42 +0200 Subject: [PATCH] 3.141 --- get_temp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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