]> mj.ucw.cz Git - home-hw.git/commitdiff
Power daemon: Bugfix
authorMartin Mares <mj@ucw.cz>
Tue, 16 Jul 2019 21:45:21 +0000 (23:45 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 16 Jul 2019 21:45:21 +0000 (23:45 +0200)
power/daemon/burrow-powerd.c

index 93e37bb6503821462ed1480ae946fed15cf06fce..28f2c1975764e4748acc8b6d10436b6290804597 100644 (file)
@@ -168,8 +168,8 @@ static void scan_power_meter(time_t now)
        mqtt_publish("burrow/power/voltage/l3n", "%.1f %ld", get_s32(4) / 10., lnow);
 
        mqtt_publish("burrow/power/current/l1", "%.3f %ld", get_s32(6) / 1000., lnow);
-       mqtt_publish("burrow/power/current/l1", "%.3f %ld", get_s32(8) / 1000., lnow);
-       mqtt_publish("burrow/power/current/l1", "%.3f %ld", get_s32(10) / 1000., lnow);
+       mqtt_publish("burrow/power/current/l2", "%.3f %ld", get_s32(8) / 1000., lnow);
+       mqtt_publish("burrow/power/current/l3", "%.3f %ld", get_s32(10) / 1000., lnow);
 
        mqtt_publish("burrow/power/power", "%.1f %ld", get_s32(12) / 10., lnow);
        mqtt_publish("burrow/power/energy", "%.1f %ld", get_s32(14) / 10., lnow);