Reformat the latitude and longitude values.

This commit is contained in:
Jonathan Naylor
2020-09-16 13:28:11 +01:00
parent 8101f4d8e6
commit b11a967171
3 changed files with 4 additions and 8 deletions

View File

@@ -279,7 +279,7 @@ bool CDMRNetwork::writeHomePosition(float latitude, float longitude)
::memcpy(buffer + 4U, m_id, 4U);
::sprintf(buffer + 8U, "%08f%09f", latitude, longitude);
::sprintf(buffer + 8U, "%+08.4f%+09.4f", latitude, longitude);
return write((unsigned char*)buffer, 25U);
}