Skip to content

Commit 2c42af5

Browse files
committed
bug: fix oscilloscope trigger channel selection
1 parent 4102435 commit 2c42af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pslab-core.X/instruments/oscilloscope.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ response_t OSCILLOSCOPE_GetCaptureStatus(void) {
117117

118118
response_t OSCILLOSCOPE_ConfigureTrigger(void) {
119119
uint8_t config = UART1_Read();
120-
SetTRIGGER_CHANNEL(config & 0x03);
120+
SetTRIGGER_CHANNEL(config & 0x0F);
121121
SetTRIGGER_PRESCALER(config >> 4);
122122
SetTRIGGER_LEVEL(UART1_ReadInt());
123123
return SUCCESS;

0 commit comments

Comments
 (0)