Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion socs/agents/pfeiffer_tc400/drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def unready_turbo(self):
if turbo_response not in PFEIFFER_BOOL:
raise ValueError(f"Unrecognized response from turbo: {turbo_response}")
else:
return turbo_response == "111111"
return turbo_response == "000000"

def ready_turbo(self):
"""Readies the turbo for spinning. Does not cause the turbo to spin up.
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_pfeiffer_tc400_agent_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_pfeiffer_tc400_turn_turbo_off(wait_for_crossbar, emulator, run_agent,
client.init()

responses = {'0011002306000000013': format_reply('000000'), # turn_turbo_motor_off()
'0011001006000000009': format_reply('111111'), # unready_turbo()
'0011001006000000009': format_reply('000000'), # unready_turbo()
}
emulator.define_responses(responses)

Expand Down Expand Up @@ -140,7 +140,7 @@ def test_pfeiffer_tc400_turn_turbo_off_failed_unready(wait_for_crossbar,
client.init()

responses = {'0011002306000000013': format_reply('000000'), # turn_turbo_motor_off()
'0011001006000000009': format_reply('000000'), # unready_turbo()
'0011001006000000009': format_reply('111111'), # unready_turbo()
}
emulator.define_responses(responses)

Expand Down