[cmd] Open zedmon.csv with O_TRUNC, i.e. truncate the file

Opening the file without truncating it only really makes sense if we
are appending to the file.

Also, O_RDWR isn't necessary: we can use O_WRONLY instead.

Change-Id: Ie0f1b142d08a4a3a77c52c5850814ab0cee80314
1 file changed
tree: d310b98120f7424aab92699a638a8dc9da712e55
  1. cmd/
  2. docs/
  3. firmware/
  4. lib/
  5. pcb/
  6. .gitmodules
  7. AUTHORS
  8. CONTRIBUTING.md
  9. LICENSE
  10. PATENTS
  11. README.md
  12. stub.go
README.md

Zedmon Power Monitor

Image of Zedmon

Zedmon is a device for measuring power consumption of electronics. It was created to assist the Fuchsia power management efforts.

Features

  • Can monitor up to 5A@28V (36V in upcoming rev 2).
  • 0.25 mA resolution.
  • Up to 3.5 KHz sample rate.
  • Current sense circuitry isolated from USB interface.
  • High and Low side sensing for detecting ground loops.
  • Relay on power line for enabling/disabling power to the device under test.

More Infomation