Completely rewrite application

Этот коммит содержится в:
Anton Tananaev
2012-12-26 23:14:48 +13:00
родитель 9a646bb0f2
Коммит 3ff48fe13b
15 изменённых файлов: 629 добавлений и 523 удалений
+3 -3
Просмотреть файл
@@ -28,7 +28,7 @@ public class Protocol {
/**
* Format device id message
*/
public static String createId(String id) {
public static String createLoginMessage(String id) {
StringBuilder s = new StringBuilder("$PGID,");
Formatter f = new Formatter(s, Locale.ENGLISH);
@@ -47,9 +47,9 @@ public class Protocol {
/**
* Format location message
*/
public static String createNmea(Location l) {
public static String createLocationMessage(Location l) {
StringBuilder s = new StringBuilder("$GPRMC,");
Formatter f = new Formatter(s, Locale.ENGLISH); // Should use DecimalFormat instead
Formatter f = new Formatter(s, Locale.ENGLISH);
f.format("%1$tH%1$tM%1$tS.%1$tL,A,", l.getTime());