From 564faf95e796a0b604bbc18aadb0564598d82c7f Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Fri, 25 Sep 2020 12:21:25 +0300 Subject: [PATCH] Fix some basic bugs in ZWO generation --- src/generateZwo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generateZwo.ts b/src/generateZwo.ts index 8d0dcb6..37715b4 100644 --- a/src/generateZwo.ts +++ b/src/generateZwo.ts @@ -6,7 +6,7 @@ import { detectRepeats, RepeatedInterval } from "./detectRepeats"; const generateTextEvents = (comments: Comment[]): xml.XmlObject[] => { return comments.map(({ offset, text }) => ({ - textevent: [{ _attr: { timeoffset: offset, message: text } }], + textevent: [{ _attr: { timeoffset: offset.value, message: text } }], })); }; @@ -20,7 +20,7 @@ const generateRangeInterval = ( _attr: { Duration: duration.value, PowerLow: intensity.from, - PowerHigh: intensity.from, + PowerHigh: intensity.to, ...(cadence ? { Cadence: cadence } : {}), }, },