Skip to content

Commit

Permalink
Fix to allow ModBus VFDs with BTT SKR Pico board. Issue #68.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Jul 24, 2023
1 parent 68f2497 commit dca4429
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions btt_skr_pico_10_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,7 @@
// Define probe switch input pin.
#define PROBE_PORT GPIO_INPUT
#define PROBE_PIN 22

#if MODBUS_ENABLE
#define MODBUS_SERIAL_PORT 0
#endif
2 changes: 1 addition & 1 deletion driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
#include "motors/trinamic.h"
#endif

#if MODBUS_ENABLE & MODBUS_RTU_ENABLED
#if (MODBUS_ENABLE & MODBUS_RTU_ENABLED) && !defined(MODBUS_SERIAL_PORT)
#define MODBUS_TEST 1
#else
#define MODBUS_TEST 0
Expand Down
2 changes: 1 addition & 1 deletion driver.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
{
"name": "PicoCNC",
"symbol": "BOARD_PICO_CNC",
"URL": "https://github.com/phil-barrett/PicoCNC",
"MAP": "pico_cnc_map.h",
"URL": "",
"caps": {
"axes": 5,
"digital_in": 4,
Expand Down
3 changes: 2 additions & 1 deletion pico_cnc_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Part of grblHAL
Copyright (c) 2021-2022 Terje Io
Copyright (c) 2021-2023 Terje Io
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -30,6 +30,7 @@
#endif

#define BOARD_NAME "PicoCNC"
#define BOARD_URL "https://github.com/phil-barrett/PicoCNC"
#define HAS_BOARD_INIT

typedef union {
Expand Down

0 comments on commit dca4429

Please sign in to comment.