CT state saving

This commit is contained in:
Siwat Sirichai 2024-03-10 01:08:32 +07:00
parent 29a975a1af
commit 439dc7480e

View file

@ -141,11 +141,17 @@ void setup()
if (analogCardAvailable) {
ESP_LOGV("ISE OS", "Analog card available, installing current transformer cards");
espmega.installCard(5, &ct_light_phase1);
ct_light_phase1.bindFRAM(&espmega.fram, 5010);
espmega.installCard(6, &ct_light_phase2);
ct_light_phase2.bindFRAM(&espmega.fram, 5020);
espmega.installCard(7, &ct_socket);
ct_socket.bindFRAM(&espmega.fram, 5030);
espmega.installCard(8, &ct_ac_phase1);
ct_ac_phase1.bindFRAM(&espmega.fram, 5040);
espmega.installCard(9, &ct_ac_phase2);
ct_ac_phase2.bindFRAM(&espmega.fram, 5050);
espmega.installCard(10, &ct_ac_phase3);
ct_ac_phase3.bindFRAM(&espmega.fram, 5060);
espmega.iot->registerCard(4);
espmega.iot->registerCard(5);
espmega.iot->registerCard(6);