• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

テスト用のあれこれ共用フォルダ


Commit MetaInfo

修订版e3d82cc7e3ed979449347e3af97a675285b66e39 (tree)
时间2018-02-20 07:11:37
作者takemasa <suikan@user...>
Commitertakemasa

Log Message

Refactored. Deleted non nessary type conversion.

更改概述

差异

--- a/stm32_development/murasaki/murasaki/uart.cpp
+++ b/stm32_development/murasaki/murasaki/uart.cpp
@@ -104,9 +104,7 @@ bool Uart::TransmitCompleteCallback(void* ptr)
104104 {
105105 MURASAKI_ASSERT(NULL != ptr)
106106
107- UART_HandleTypeDef * specific_uart = (UART_HandleTypeDef *) ptr;
108-
109- if (uart_ == specific_uart) {
107+ if (uart_ == ptr) {
110108 tx_sync_->ReleaseTaskFromISR();
111109 return true;
112110 }
@@ -154,9 +152,7 @@ bool Uart::ReceiveCompleteCallback(void* ptr)
154152 {
155153 MURASAKI_ASSERT(NULL != ptr)
156154
157- UART_HandleTypeDef * specific_uart = (UART_HandleTypeDef *) ptr;
158-
159- if (uart_ == specific_uart) {
155+ if (uart_ == ptr) {
160156 rx_sync_->ReleaseTaskFromISR();
161157 return true;
162158 }