Skip to content

Commit 4acfdb7

Browse files
committed
removed unnecessary comments
1 parent a4680c9 commit 4acfdb7

File tree

1 file changed

+0
-38
lines changed
  • boards/varmint_h7/common/drivers

1 file changed

+0
-38
lines changed

boards/varmint_h7/common/drivers/Ubx.cpp

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -118,41 +118,6 @@ uint32_t Ubx::init(
118118
initializationStatus_ |= DRIVER_HAL_ERROR;
119119
return initializationStatus_;
120120
}
121-
// baud_initial_ = 100000000/huart_->Instance->BRR;
122-
123-
// uint32_t bauds[] = {9600, 115200, 38400, 57600, 230400}; // { 9600, 19200, 38400, 57600, 115200, 230400, 460800};
124-
// unsigned int i, retry;
125-
// HAL_Delay(1000);
126-
//
127-
// uint32_t ubx_baud = 0;
128-
//
129-
// for (retry = 0; retry < 5; retry++) {
130-
// for (i = 0; i < sizeof(bauds) / sizeof(uint32_t); i++) {
131-
// // Set STM Baud
132-
// huart_->Init.BaudRate = bauds[i];
133-
// if (HAL_UART_Init(huart_) != HAL_OK) {
134-
// initializationStatus_ |= DRIVER_HAL_ERROR;
135-
// return initializationStatus_;
136-
// }
137-
// // Set UBLOX Baud
138-
// cfgPrt(baud_);
139-
// HAL_Delay(2);
140-
// }
141-
//
142-
// // Set STM Baud
143-
// huart_->Init.BaudRate = baud_;
144-
// if (HAL_UART_Init(huart_) != HAL_OK) {
145-
// initializationStatus_ |= DRIVER_HAL_ERROR;
146-
// return initializationStatus_;
147-
// }
148-
// HAL_Delay(100); // Give the UBLOX some time to get there
149-
//
150-
// // Check if we have acquired the baud rate
151-
// ubx_baud = pollBaud();
152-
//
153-
// if (ubx_baud == baud_) break;
154-
// misc_printf("%6lu, %u retries\n", 100000000 / huart_->Instance->BRR, retry);
155-
// }
156121

157122
// New Sync Baudrate
158123

@@ -174,9 +139,6 @@ uint32_t Ubx::init(
174139
return initializationStatus_;
175140
}
176141
// Send UBLOX Baud configuration message
177-
// if (ubxProtocol_ == UBX_M8) cfgPrt(baud_);
178-
// else cfgM9(baud_, sampleRateHz_);
179-
180142
cfgPrt(baud_);
181143

182144
// Look for Ack message

0 commit comments

Comments
 (0)