Skip to content

Commit 15b124f

Browse files
committed
pbio/platform: Fix number of ports on City Hub.
1 parent dbd9175 commit 15b124f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Fixed Technic (Extra) Large motors not working ([support#1131]) on all hubs.
99
- Fixed Powered Up Light not working ([support#1131]) on all hubs.
1010
- Fixed UART sensors not working on Technic Hub ([support#1137]).
11+
- Fixed incorrect number of ports on City Hub ([support#1131]).
1112

1213
[support#1131]: https://github.com/pybricks/support/issues/1131
1314
[support#1137]: https://github.com/pybricks/support/issues/1137

lib/pbio/platform/city_hub/pbdrvconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
#define PBDRV_CONFIG_LEGODEV (1)
5555
#define PBDRV_CONFIG_LEGODEV_PUP (1)
5656
#define PBDRV_CONFIG_LEGODEV_PUP_NUM_INT_DEV (0)
57-
#define PBDRV_CONFIG_LEGODEV_PUP_NUM_EXT_DEV (6)
57+
#define PBDRV_CONFIG_LEGODEV_PUP_NUM_EXT_DEV (2)
5858
#define PBDRV_CONFIG_LEGODEV_PUP_UART (1)
59-
#define PBDRV_CONFIG_LEGODEV_MODE_INFO (1)
59+
#define PBDRV_CONFIG_LEGODEV_MODE_INFO (1)
6060
#define PBDRV_CONFIG_LEGODEV_PUP_UART_NUM_DEV (PBDRV_CONFIG_LEGODEV_PUP_NUM_EXT_DEV)
6161

6262
#define PBDRV_CONFIG_MOTOR_DRIVER (1)

lib/pbio/platform/technic_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#define PBDRV_CONFIG_LEGODEV_PUP_NUM_INT_DEV (0)
6666
#define PBDRV_CONFIG_LEGODEV_PUP_NUM_EXT_DEV (4)
6767
#define PBDRV_CONFIG_LEGODEV_PUP_UART (1)
68-
#define PBDRV_CONFIG_LEGODEV_MODE_INFO (1)
68+
#define PBDRV_CONFIG_LEGODEV_MODE_INFO (1)
6969
#define PBDRV_CONFIG_LEGODEV_PUP_UART_NUM_DEV (PBDRV_CONFIG_LEGODEV_PUP_NUM_EXT_DEV)
7070

7171
#define PBDRV_CONFIG_MOTOR_DRIVER (1)

0 commit comments

Comments
 (0)