Skip to content

Commit

Permalink
📚 Apply BlueStyle to the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisbr committed Apr 3, 2022
1 parent 3d8d6fa commit 8ab3070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/man/examples/temperature.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function acquire_temperature()
end

# AD measurement.
V = ( (UInt16(rx_buf[2] & 3) << 8) + rx_buf[3] )*3.3/1024
V = ((UInt16(rx_buf[2] & 3) << 8) + rx_buf[3]) * 3.3 / 1024

if V == 0
@warn("The MCP3008 measured 0V.")
Expand All @@ -124,8 +124,8 @@ function acquire_temperature()
# Convert the measurement to temperature
# ==========================================================================

th_R = R_div*(3.3/V - 1)
T = 1/( log(th_R / th_R₀)/th_β + 1/(th_T₀ + 273.15) ) - 273.15
th_R = R_div * (3.3 / V - 1)
T = 1 / (log(th_R / th_R₀) / th_β + 1 / (th_T₀ + 273.15)) - 273.15

return T
end
Expand Down

0 comments on commit 8ab3070

Please sign in to comment.