diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-04-18 10:55:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-04-18 10:55:53 +0200 |
commit | 333a89deed9a0f119853400d28f17f6796c8a4ee (patch) | |
tree | 66c4758d34e9afc19bb9dc43f2bbc0d42624a8d1 | |
parent | 30a87091a706e685dc88cba0d817d907bf6f52a9 (diff) |
typo
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ sds011 = require("sds011") port = softuart.setup(9600, 2, 1) port:on("data", 10, uart_callback) -function uart_callback(data +function uart_callback(data) local pm25i, pm25d, pm10i, pm10d = sds011.parse_frame(data) if pm25i ~= nil then -- pm25i/pm10i contain the integer part (i.e., PM2.5 / PM10 value in µg/m³) |