summaryrefslogtreecommitdiff
path: root/ebus-racket/db-pq.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'ebus-racket/db-pq.rkt')
-rw-r--r--ebus-racket/db-pq.rkt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus-racket/db-pq.rkt b/ebus-racket/db-pq.rkt
index 03ef154..3b15a73 100644
--- a/ebus-racket/db-pq.rkt
+++ b/ebus-racket/db-pq.rkt
@@ -63,7 +63,7 @@
;; then calls 'insert`
(define (insert-field sensor-name datatype offset value)
(cond ((member datatype (list "data1c" "data2b" "data2c"))
- (insert sensor-name "float" value))
+ (insert sensor-name "float" (real->double-flonum value)))
((member datatype (list "bit" "byte" "data1b" "word" "bcd"))
(insert sensor-name "int" value))
((member datatype (list "byteEnum"))