소스 검색

getVelocity() returns 0 when parsing from lastPosition fails

tags/v1.2.0
Bertrand Lemasle 7 년 전
부모
커밋
fe7723c9d9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      GpsTracker/Gps.cpp

+ 1
- 1
GpsTracker/Gps.cpp 파일 보기

@@ -47,7 +47,7 @@ namespace gps {

uint8_t getVelocity() {
uint8_t velocity;
hardware::sim808::device.getGpsField(lastPosition, SIM808_GPS_FIELD::SPEED, &velocity);
if (!hardware::sim808::device.getGpsField(lastPosition, SIM808_GPS_FIELD::SPEED, &velocity)) velocity = 0;

VERBOSE_FORMAT("getVelocity", "%d", velocity);



불러오는 중...
취소
저장