mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 09:58:40 -07:00
support negative lat in CSV payloads
This commit is contained in:
parent
d3088fa222
commit
291d0ef69b
@ -202,7 +202,7 @@ void republish(struct mosquitto *mosq, struct udata *userdata, char *username, c
|
||||
*/
|
||||
|
||||
// TID , TST , T , LAT , LON , COG , VEL , ALT , DIST , TRIP
|
||||
#define CSV_RE "^([[:alnum:]]+),([[:xdigit:]]+),[[:alnum:]],[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+$"
|
||||
#define CSV_RE "^([[:alnum:]]+),([[:xdigit:]]+),[[:alnum:]],-?[[:digit:]]+,-?[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+,[[:digit:]]+$"
|
||||
|
||||
static int csv_looks_sane(char *payload)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user