Skip to content

Commit ec1fe59

Browse files
author
Kei
committed
Fixed uart, platform.txt.
1 parent 31e94e9 commit ec1fe59

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libraries/SrcWrapper/src/stm32/uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ uint8_t uart_index(UART_HandleTypeDef *huart)
809809
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
810810
{
811811
serial_t *obj = get_serial_obj(huart);
812-
if (obj) {
812+
if (obj && obj->rx_callback != NULL) {
813813
obj->rx_callback(obj);
814814
}
815815
}

package_stm_xelnetwork_index.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"category": "Contributed",
1818
"url": "https://github.com/ROBOTIS-GIT/Arduino_Core_STM32/releases/download/0.0.1/STM32_XELNetwork.tar.bz2",
1919
"archiveFileName": "STM32_XELNetwork.tar.bz2",
20-
"checksum": "SHA-256:40E0D194E465CDF550D18339B21759A9C022CA25733DBF42A405BE606EC5AE86",
21-
"size": "2088365",
20+
"checksum": "SHA-256:0646DC8F08360F102A0B0163E260074116B428C11FC3F4D04B06383D57F19BB4",
21+
"size": "2088364",
2222
"boards": [
2323
{"name": "SensorXEL"},
2424
{"name": "PowerXEL"}

platform.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,19 +154,19 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
154154
# Upload using SensorXEL bootloader over Serial
155155
tools.xel_loader.cmd=xel_loader
156156
tools.xel_loader.cmd.windows=xel_loader.exe
157-
tools.xel_loader.path={runtime.hardware.path}/tools/xel_loader/linux
158-
tools.xel_loader.path.windows={runtime.hardware.path}/tools/xel_loader/win
159-
#tools.xel_loader.path.macosx={runtime.hardware.path}/tools/xel_loader/macosx
157+
tools.xel_loader.path={runtime.platform.path}/tools/xel_loader/linux
158+
tools.xel_loader.path.windows={runtime.platform.path}/tools/xel_loader/win
159+
#tools.xel_loader.path.macosx={runtime.platform.path}/tools/xel_loader/macosx
160160
tools.xel_loader.upload.params.verbose=-d
161161
tools.xel_loader.upload.params.quiet=n
162162
tools.xel_loader.upload.pattern="{path}/{cmd}" {serial.port.file} 1000000 {upload.flash_address} "{build.path}/{build.project_name}.bin" 1 1
163163

164164
# Upload using stm32flash
165165
tools.stm32flash.cmd=stm32flash
166166
tools.stm32flash.cmd.windows=stm32flash.exe
167-
tools.stm32flash.path={runtime.hardware.path}/tools/stm32flash/linux
168-
tools.stm32flash.path.windows={runtime.hardware.path}/tools/stm32flash/win
169-
#tools.stm32flash.path.macosx={runtime.hardware.path}/tools/stm32flash/macosx
167+
tools.stm32flash.path={runtime.platform.path}/tools/stm32flash/linux
168+
tools.stm32flash.path.windows={runtime.platform.path}/tools/stm32flash/win
169+
#tools.stm32flash.path.macosx={runtime.platform.path}/tools/stm32flash/macosx
170170
tools.stm32flash.erase.params.verbose=-v
171171
tools.stm32flash.erase.params.quiet=-q -q
172172
tools.stm32flash.erase.pattern=

0 commit comments

Comments
 (0)