sleep for g2 and my3 poweron

This commit is contained in:
Erik Frojdh committed 2026-11-12 16:01:10 +01:00
1 parent e01f2745cc
commit 3a1af098ed
2 files changed
+2

No files matched your search

@@ -2356,6 +2356,7 @@ int powerChip(bool on, char *mess) {
if (on) {
LOG(logINFO, ("Powering chip: on\n"));
bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK);
usleep(50 * 1000); // wait for chip to be ready
if (configureChip(mess) == FAIL)
return FAIL;
} else {
@@ -2413,6 +2413,7 @@ int powerChip(int on) {
if (on) {
LOG(logINFO, ("Powering chip: on\n"));
bus_w(CONTROL_REG, bus_r(CONTROL_REG) | CONTROL_PWR_CHIP_MSK);
usleep(50 * 1000); // wait for chip to be ready
} else {
LOG(logINFO, ("Powering chip: off\n"));
bus_w(CONTROL_REG, bus_r(CONTROL_REG) & ~CONTROL_PWR_CHIP_MSK);