[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. .gitmodules
  2. AUTHORS
  3. CONTRIBUTING.md
  4. LICENSE
  5. PATENTS
  6. README.md
  7. cmd/
  8. docs/
  9. firmware/
  10. lib/
  11. pcb/
  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