mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Remove compilation warnings.
This commit is contained in:
parent
ac53939204
commit
35629f8708
2 changed files with 5 additions and 4 deletions
|
|
@ -1640,7 +1640,7 @@ void CDMRSlot::logGPSPosition(const unsigned char* data)
|
|||
{
|
||||
unsigned int errorI = (data[2U] & 0x0E) >> 1U;
|
||||
|
||||
char* error;
|
||||
const char* error;
|
||||
switch (errorI) {
|
||||
case 0U:
|
||||
error = "< 2m";
|
||||
|
|
@ -1664,7 +1664,8 @@ void CDMRSlot::logGPSPosition(const unsigned char* data)
|
|||
error = "> 200km";
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
error = "not known";
|
||||
break;
|
||||
}
|
||||
|
||||
int32_t longitudeI = ((data[2U] & 0x01U) << 31) | (data[3U] << 23) | (data[4U] << 15) | (data[5U] << 7);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue