aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gps.cpp')
-rw-r--r--plugins/gps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gps.cpp b/plugins/gps.cpp
index 646754a..4913f31 100644
--- a/plugins/gps.cpp
+++ b/plugins/gps.cpp
@@ -59,7 +59,7 @@ CTLP_CAPI (getHeading, source, argsJ, eventJ) {
if(coordUpdated) {
heading = round(r2d * atan2((curLon - prvLon) * cos(d2r * curLat), curLat - prvLat));
- ctx->setSignalValue(ctx->aSignal, 0, heading);
+ ctx->setSignalValue(ctx->aSignal, 0, json_object_new_double(heading));
}
AFB_NOTICE("======== Heading: %f", heading);