fix(lua): Re-implement luaSetSerialBaudrate (#4501)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user