Browse Source

added is_client_connected method to remote_bitbang class

pull/2282/head
Vladimir Efimov 3 weeks ago
parent
commit
89cb870ed8
  1. 4
      riscv/remote_bitbang.cc
  2. 3
      riscv/remote_bitbang.h

4
riscv/remote_bitbang.cc

@ -184,3 +184,7 @@ void remote_bitbang_t::execute_commands()
}
}
}
bool remote_bitbang_t::is_client_connected() const{
return client_fd != 0;
}

3
riscv/remote_bitbang.h

@ -15,6 +15,9 @@ public:
// Do a bit of work.
void tick();
// Check if any client is connected
bool is_client_connected() const;
private:
jtag_dtm_t *tap;

Loading…
Cancel
Save