Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
João Magalhães
chip-ahoyto
Commits
fbde958f
Verified
Commit
fbde958f
authored
Nov 21, 2022
by
João Magalhães
🎱
Browse files
fix: frequency decimal places issue
parent
c443c107
Pipeline
#1771
passed with stages
in 10 minutes and 36 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
fbde958f
...
...
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
*
*
Frequency decimal places issue
## [0.4.1] - 2022-11-21
...
...
frontends/web/package.json
View file @
fbde958f
...
...
@@ -20,7 +20,7 @@
"@parcel/transformer-typescript-tsc"
:
"^2.8.0"
,
"@types/react"
:
"^18.0.25"
,
"@types/react-dom"
:
"^18.0.9"
,
"emukit"
:
"^0.
3
.0"
,
"emukit"
:
"^0.
4
.0"
,
"nodemon"
:
"^2.0.20"
,
"parcel"
:
"^2.8.0"
,
"prettier"
:
"^2.7.1"
,
...
...
frontends/web/ts/chip8.ts
View file @
fbde958f
...
...
@@ -5,6 +5,7 @@ import {
Entry
,
Feature
,
Frequency
,
FrequencySpecs
,
PixelFormat
,
RomInfo
,
Size
...
...
@@ -400,12 +401,12 @@ export class Chip8Emulator extends EmulatorBase implements Emulator {
this
.
trigger
(
"
frequency
"
,
value
);
}
get
frequency
Unit
():
Frequency
|
null
{
return
Frequency
.
Hz
;
}
get
frequencyDelta
():
number
|
null
{
return
60
;
get
frequency
Specs
():
Frequency
Specs
{
return
{
unit
:
Frequency
.
Hz
,
delta
:
60
,
places
:
0
}
;
}
get
framerate
():
number
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment