fix(lua): Re-implement luaSetSerialBaudrate (#4501)

This commit is contained in:
Raphael Coeffic
2024-01-03 13:29:02 +10:00
committed by GitHub
parent 34913d9e95
commit 317766dab7
7 changed files with 51 additions and 32 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ void DebugViewPage::build(FormWindow* window)
#endif
#if defined(INTERNAL_GPS)
if (hasSerialMode(UART_MODE_GPS) != -1) {
if (serialGetModePort(UART_MODE_GPS) >= 0) {
line = form->newLine(&grid);
line->padAll(2);
@@ -253,7 +253,7 @@ class InternalGPSWidget: public TopBarWidget
void refresh(BitmapBuffer * dc) override
{
if (hasSerialMode(UART_MODE_GPS) != -1) {
if (serialGetModePort(UART_MODE_GPS) >= 0) {
if (gpsData.fix) {
char s[10];
sprintf(s, "%d", gpsData.numSat);