Skip to content

Commit

Permalink
chore: added README run
Browse files Browse the repository at this point in the history
  • Loading branch information
ielaajezdev committed Jan 5, 2025
1 parent 9e42fd7 commit f032a5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# battery

This module presents a way to read and act on the battery voltage of the ADS1015.

## Run (HOTFIX)

Run this service as follows:

```bash
export ASE_SERVICE=$(cat boot.json)
sudo -E ./bin/battery
```
1 change: 0 additions & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ func critical_loop() error {

// Trivial publisher which reads battery voltage and publishes it
func publisher(output roverlib.WriteStream) {

for {
time.Sleep(time.Duration(sampleRate) * time.Second)

Expand Down

0 comments on commit f032a5e

Please sign in to comment.