Skip to content

Commit

Permalink
Bus Pirate 6 logic analzer updates: change to second buffer, don't lo…
Browse files Browse the repository at this point in the history
…ck terminal, only apply power if terminal closed or in HiZ
  • Loading branch information
DESKTOP-M9CCUTI\ian committed Aug 22, 2024
1 parent c957530 commit d02830e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions binmode/sump.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,13 +582,13 @@ void sump_logic_analyzer_service(void){
switch(state){
case SLA_STATE_IDLE:
if(tud_cdc_n_connected(1)){
#if BP_VERSION != 6
#if BP_VER != 6
script_enabled();
#endif
cdc_sump_init();
cdc_sump_init_connect();
#if BP_VERSION == 6
if(system_config.mode == 0)
#if BP_VER == 6
if(system_config.mode == 0 || !tud_cdc_n_connected(0))
#endif
psu_enable(3.3,100, true);
state=SLA_STATE_SERVICE;
Expand All @@ -598,11 +598,11 @@ void sump_logic_analyzer_service(void){
cdc_sump_task();
if(!tud_cdc_n_connected(1) || button_get(0)){
logic_analyzer_cleanup();
#if BP_VERSION == 6
if(system_config.mode == 0)
#if BP_VER == 6
if(system_config.mode == 0 || !tud_cdc_n_connected(0))
#endif
psu_disable();
#if BP_VERSION != 6
#if BP_VER != 6
script_disabled();
#endif
state=SLA_STATE_IDLE;
Expand Down

0 comments on commit d02830e

Please sign in to comment.